Skip to content

Commit

Permalink
dont generate sourceMap if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 24, 2018
1 parent ce225a0 commit dcc8ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = async (entry, { externals = [], minify = true, sourceMap = fals
nodeEnv: false,
minimize: false
},
devtool: "cheap-source-map",
devtool: sourceMap ? "cheap-source-map" : false,
mode: "production",
target: "node",
output: {
Expand Down

0 comments on commit dcc8ee3

Please sign in to comment.