-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Description
Example in readme states that BUNDLE_DIR_NAME option must be ended with slash:
WEBPACK_LOADER = {
'DEFAULT': {
'BUNDLE_DIR_NAME': 'bundles/' # end with slash
}
}
However, I wanted webpack configuration that outputs bundle in root of staticfiles dir, so I created configuration like this:
WEBPACK_LOADER = {
'DEFAULT': {
'BUNDLE_DIR_NAME': '/',
'STATS_FILE': os.path.join(ROOT_DIR, 'webpack-stats-dist.json'),
}
}
And it lead me to pity errors as my staticfiles storage class was unable to find url for appropriate bundle files. 'BUNDLE_DIR_NAME': ''
, obviously, works.
I think this should be clarified.
Metadata
Metadata
Assignees
Labels
No labels