fix(Build): Fix root dir resolution for relative paths
@@ -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')
+ ) + '/'
)
},
},
