3 ms·
I've tried setting up django-webpack-loader but it felt very heavy handed and I didn't like how it forces you to use some non-standard manifest plugin that was
by PascalW 6y ago
I've tried setting up django-webpack-loader but it felt very heavy handed and I didn't like how it forces you to use some non-standard manifest plugin that was pretty buggy.
Instead I went with vanilla Webpack outputting files into Django `STATIC_ROOT`. That way Webpack is only concerned with producing the files and Django handles the whole file name hashing, compression etc in production.
I've found this to be much, much more straightforward. I'm planning to write a post about it.
- ivan_ah 6y agoYes, please blog post this. I'm curious to see how you inject the right bundle hack name (js side) into the django template (Python side). > non-standard manifest plugin I hear you, and this feels weird to me too, but then again node-land needs to talk to Django-land somehow so writing a .json file doesn't seem all that bad way to do it ;)