Move module resolution config to webpack

This commit is contained in:
Manuel Bouza
2019-02-06 11:10:23 +01:00
parent 30292f9db0
commit 76c51d4e94
2 changed files with 7 additions and 12 deletions

View File

@@ -75,6 +75,12 @@ module.exports = {
chunks: ["options"]
})
],
resolve: {
modules: [path.join(__dirname, "src/js"), "node_modules"],
alias: {
images: path.join(__dirname, 'src/images')
}
},
// webpack creates sourcemaps by default and evals js code
// this is not allowed by chrome extensions
// https://stackoverflow.com/a/49100966