Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(Build): Fix root dir resolution for relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Aug 5, 2020
1 parent bf74593 commit 07f0115
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
) + '/'
)
},
},
Expand Down

0 comments on commit 07f0115

Please sign in to comment.