Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great list. I use a few of these on all projects.

Interestingly, django-webpack-loader has completely replaced django-compressor and all the other static bundlers. I like how configurable webpack is and how much control it gives you.

Anyone else completely switched over? Every single static file runs through webpack for me now, and I couldn't imagine ever going back.



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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: