Skip to content

Commit

Permalink
Fxing source maps for production (mattermost#4621)
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller authored and enahum committed Nov 22, 2016
1 parent d0a149d commit d2b0e47
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ var config = {
}
}
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
}),
new webpack.optimize.CommonsChunkPlugin({
minChunks: 2,
children: true
Expand Down Expand Up @@ -143,12 +138,20 @@ if (!DEV) {
compress: {
warnings: false
},
comments: false
comments: false,
sourceMap: true
})
);
config.plugins.push(
new webpack.optimize.OccurrenceOrderPlugin(true)
);
config.plugins.push(
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
})
);
}

// Test mode configuration
Expand Down

0 comments on commit d2b0e47

Please sign in to comment.