Skip to content

Commit

Permalink
Fix/sourcemap (#103)
Browse files Browse the repository at this point in the history
* Fix source map issue in prod, closes #96
* compress warnings defaults to false
  • Loading branch information
felipesilva authored and ccpricenytimes committed Sep 8, 2016
1 parent 77c0d2f commit 048221c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/webpack.prod.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const cssStyleLoaders = [
module.exports = (options) => ({
target: 'web',

devtool: 'hidden-source-map',
devtool: 'source-map',

entry: {
main: [`${clientSrcPath}/index.js`],
Expand Down Expand Up @@ -62,8 +62,11 @@ module.exports = (options) => ({
new webpack.optimize.UglifyJsPlugin({
compress: {
screw_ie8: true,
warnings: false,
},
output: {
comments: false,
},
sourceMap: true,
}),

new AssetsPlugin({
Expand Down

0 comments on commit 048221c

Please sign in to comment.