Skip to content
Snippets Groups Projects
Commit cd5ea388 authored by Thomas Roos's avatar Thomas Roos
Browse files

Improve sourcemap quality

parent 7b3cc715
No related branches found
No related tags found
No related merge requests found
const webpack = require('webpack');
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
......@@ -7,9 +8,6 @@ module.exports = merge(common, {
{ test: /\.css$/, use: [ 'style-loader', 'css-loader' ]}
]
},
devtool: 'eval-source-map',
devServer: {
hot: true,
inline: true,
......@@ -26,5 +24,10 @@ module.exports = merge(common, {
warnings: true,
errors: true
}
}
},
plugins: [
new webpack.EvalSourceMapDevToolPlugin({
sourceURLTemplate: module => `/${module.identifier}`
})
]
})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment