Skip to content

Commit 0169c11

Browse files
committed
stringify STATIC_URL
1 parent 4afab6c commit 0169c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npm_mjs/management/commands/webpack.config.template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const predefinedVariables = {
2020

2121
if (settings.DEBUG) {
2222
baseRule.exclude = /node_modules/
23-
predefinedVariables.staticUrl = `(url => ${settings.STATIC_URL} + url)`
23+
predefinedVariables.staticUrl = `(url => ${JSON.stringify(settings.STATIC_URL)} + url)`
2424
} else if (settings.STATICFILES_STORAGE !== "npm_mjs.storage.ManifestStaticFilesStorage") {
25-
predefinedVariables.staticUrl = `(url => ${settings.STATIC_URL} + url + "?v=" + ${transpile.VERSION})`
25+
predefinedVariables.staticUrl = `(url => ${JSON.stringify(settings.STATIC_URL)} + url + "?v=" + ${transpile.VERSION})`
2626
}
2727

2828
module.exports = { // eslint-disable-line no-undef

0 commit comments

Comments
 (0)