Skip to content

Commit 6eeb312

Browse files
committed
template fix
1 parent 049c21a commit 6eeb312

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).replace(/[\/]+/g, '/'))`
23+
predefinedVariables.staticUrl = `(url => ${settings.STATIC_URL} + url)`
2424
} else if (settings.STATICFILES_STORAGE !== "npm_mjs.storage.ManifestStaticFilesStorage") {
25-
predefinedVariables.staticUrl = `(url => (${settings.STATIC_URL} + url).replace(/[\/]+/g, '/') + "?v=" + transpile_VERSION)`
25+
predefinedVariables.staticUrl = `(url => ${settings.STATIC_URL} + url + "?v=" + ${transpile.VERSION})`
2626
}
2727

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

0 commit comments

Comments
 (0)