Y
Hacker News
new
|
ask
|
show
|
jobs
by
herge
3524 days ago
Anyone have any success/tips using webpack with django collectstatic?
3 comments
steffenmllr
3524 days ago
I use
https://github.com/owais/django-webpack-loader
together with
https://www.npmjs.com/package/webpack-bundle-tracker
to handle (hashed) file loading from webpack
link
civilian
3524 days ago
+1, it's the best way to roll.
link
misiti3780
3524 days ago
i do this, i just dump assets (uncompressed) into a build directory and use django pipeline for deployment. works fine for me.
if you want to see it in action look here:
https://github.com/josephmisiti/generic-django-project
link
bendavis381
3524 days ago
Yeah, it's no different to any other setup. Just have webpack dump the assets into a static folder somewhere ready for collectstatic.
link
herge
3524 days ago
What about during deployments? You run webpack on the server before running collectstatic?
link