django-webpack-loader
django-webpack-loader copied to clipboard
should BUNDLE_DIR_NAME also in the staticfiles_dir.
WEBPACK_LOADER = { 'DEFAULT': { 'BUNDLE_DIR_NAME': 'bundles/', 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'), }, 'DASHBOARD': { 'BUNDLE_DIR_NAME': 'dashboard_bundles/', 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats-dashboard.json'), } }
why to use 'BUNDLE_DIR_NAME', why cant i put bundles in static/appname/
How to reproduce your issue exactly ?
Can you upload a minimal project to reproduce your issue ?
Thanks
@jpic I think @sant527 just wanted to know what BUNDLE_DIR_NAME
's root is, as the README doesn't say and because they would like to make it available elsewhere.
But it appears BUNDLE_DIR_NAME
indeed is always expected to be in a Django project's overall static
directory.
Update: BUNDLE_DIR_NAME must be mentioned in README or should be handled transparently by the library.
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.
Hopefully this is now clearer in README. Closing.