diff --git a/webpack.config.js b/webpack.config.js index 90ed21950..d55bbef82 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -180,7 +180,10 @@ module.exports = (env = {}, { mode }) => { // Make asset paths relative // @see https://github.com/webpack-contrib/mini-css-extract-plugin#the-publicpath-option-as-function return ( - path.relative(path.dirname(resourcePath), context) + '/' + path.relative( + path.dirname(resourcePath), + path.join(context, 'src') + ) + '/' ) }, },