Skip to content

Commit

Permalink
Properly resolve path for static files
Browse files Browse the repository at this point in the history
  • Loading branch information
mic4ael authored and ThiefMaster committed May 16, 2019
1 parent 75376a1 commit 4666a78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -115,6 +115,7 @@
"postcss-scss": "^2.0.0",
"postcss-url": "^8.0.0",
"progress-bar-webpack-plugin": "^1.12.1",
"resolve-url-loader": "^3.1.0",
"sass-lint": "^1.13.1",
"sass-loader": "^7.1.0",
"script-loader": "^0.7.2",
Expand Down
6 changes: 6 additions & 0 deletions webpack/base.js
Expand Up @@ -156,6 +156,12 @@ export function webpackDefaults(env, config, bundles) {
url: !config.isPlugin, // FIXME: true breaks plugins, false breaks /indico/ in core
...cssLoaderOptions
}
}, {
loader: 'resolve-url-loader',
options: {
keepQuery: true,
root: config.isPlugin ? false : config.build.staticPath
}
}, {
loader: 'postcss-loader',
options: {
Expand Down

0 comments on commit 4666a78

Please sign in to comment.