Add source-map-loader to webpack config

This makes source maps work in the demo
This commit is contained in:
Segev Finer
2018-08-07 22:39:09 +03:00
parent dd7a9c3b7a
commit 458f2d8bf1
3 changed files with 29 additions and 2 deletions
+10 -1
View File
@@ -6,5 +6,14 @@ module.exports = {
path: path.resolve(__dirname, 'demo/dist'),
filename: 'bundle.js'
},
devtool: 'source-map'
devtool: 'source-map',
module: {
rules: [
{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre"
}
]
}
};