-
Notifications
You must be signed in to change notification settings - Fork 342
Description
Ok, this has been brought up numerous times before and the answer is always to use Webpack's publicPath to configure the URL base. This seems wrong. Even your documentation is wrong saying that STATIC_URL is used.
Is integrating webpack into a DJANGO project not the entire point of this repo? Why do I want more configuration files when I could just append the STATIC_URL to the start when generating urls in render_bundle. If you don't want it to do that, then remove your STATIC_URL.
Bottom line, I think this package is making too many assumptions and decisions on the users behalf. For example, I have a large app that I'm trying to integrate right now. It has about 30 static media servers including random CDN providers. My STATIC_URL is dynamic based on connection locale. Webpack build does not know anything about this when building locally before deploy. If this package would just respect STATIC_URL the way every other Django integration does, this would just work.
I'm going to fork this package and use my hacked version, but I would SERIOUSLY recommend taking this into consideration.