Enabling sourcemaps for minified JS

This commit is contained in:
Djamil Legato
2016-02-05 12:37:59 -08:00
parent ed0d0f5b29
commit eff1efd3d6

View File

@@ -28,12 +28,13 @@ var plugins = {
}),
prod: base.mergeDeep({
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': { NODE_ENV: '"production"' }
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: false,
sourceMap: true,
compress: {
warnings: false
}