Skip to content

Commit

Permalink
feat(hops-build-config): add source maps to production build output
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-drexler authored and dmbch committed Nov 22, 2017
1 parent 6d10033 commit 9cfde51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/build-config/configs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
module: {
rules: require('../sections/module-rules')('build')
},
devtool: 'source-map',
plugins: [
new WriteFilePlugin(/^manifest\.js?$/),
new WriteManifestPlugin(),
Expand Down Expand Up @@ -61,9 +62,9 @@ module.exports = {
new webpack.LoaderOptionsPlugin({
debug: false,
minimize: true,
sourceMap: false
sourceMap: true
}),
new webpack.optimize.ModuleConcatenationPlugin(),
new UglifyPlugin()
new UglifyPlugin({ sourceMap: true })
]
};

0 comments on commit 9cfde51

Please sign in to comment.