You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When changing the output.path, the BUNDLE_DIR_NAME must also be updated. The bundles parent directory must also be in STATICFILES_DIRS if you're serving assets using Django's staticfiles app (which is the default in Django's runserver). Unfortunately this isn't mentioned in the README. We'll fix that. Closing as duplicate of #178
Hi everyone,
I installed your incredible package today, but I'm facing an issue.
I modified the base
package.config.json
in order to change the output dir and replace "webpack_bundles" bybuilds
:It seems this change is correctly applied when building my output assets, the path seems correct.
/webpack-stats.json
My settings in Django are the default one provided by your tutoriel. In my case
DEBUG=1
soCACHE=0
:And in my HTML template I import the following inside my tag :
Then I build by asset by running the following command :
Bug when I run the page, I still have an old path for the script tag, resulting in a 404 error :
Am I missing something ? Shouldn't it be using the new path with the
builds
dir ?I tried to restart the Django server, I also cleared the
__pycache__
folders of all my apps. Nothing changes.Is it a bug or a misunderstanding from me ?
Thanks a lot
The text was updated successfully, but these errors were encountered: