Skip to content
Snippets Groups Projects
Commit d3720686 authored by Nolan Lawson's avatar Nolan Lawson Committed by Eugen Rochko
Browse files

add source maps for dev/production (#2873)

parent 139d1834
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ const merge = require('webpack-merge')
const sharedConfig = require('./shared.js')
module.exports = merge(sharedConfig, {
devtool: 'sourcemap',
devtool: 'cheap-module-eval-source-map',
stats: {
errorDetails: true
......
......@@ -8,6 +8,9 @@ const CompressionPlugin = require('compression-webpack-plugin')
const sharedConfig = require('./shared.js')
module.exports = merge(sharedConfig, {
devtool: 'source-map', // separate sourcemap file, suitable for production
output: { filename: '[name]-[chunkhash].js' },
plugins: [
......@@ -19,7 +22,7 @@ module.exports = merge(sharedConfig, {
comments: false
},
sourceMap: false
sourceMap: true
}),
new CompressionPlugin({
asset: '[path].gz[query]',
......
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