Hacker News new | ask | show | jobs
by spapas82 3171 days ago
Hello, I am aware of webpack but I haven't jumped in the webpack wagon - the tool I use from the node-js world for asset management is browserify which is much simpler (I've written a couple of articles about it: https://spapas.github.io/2015/05/27/using-browserify-watchif... and https://spapas.github.io/2015/11/16/using-browserify-es6/).

However, as I mention in the post, I don't using node-js tools if you don't need em. If you have a couple of css / js files that don't do anything fancy (i.e no es6, no require etc) then I don't thenk that there's any need to add a huge dependency (node-js and friends) to your project. django-compressor (or django-pipeline https://github.com/jazzband/django-pipeline which is also good) should be more than enough for your needs. Also, notice that webpack / browserify don't understand javascript or css snipped that are inlined in your django templates (django-compressor understands them all right).