Skip to content

Commit

Permalink
build(sourcemap): conditional sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
tagraha committed Mar 19, 2018
1 parent 8221d59 commit e9cc5a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const browserConfig = {
path: path.resolve("./build"),
filename: "[name].min.js"
},
devtool: "cheap-module-source-map",
devtool: isDev ? "cheap-module-source-map" : "hidden-source-map",
module: {
rules: [
{
Expand Down Expand Up @@ -92,7 +92,7 @@ const serverConfig = {
filename: "server.js",
libraryTarget: "commonjs2"
},
devtool: "cheap-module-source-map",
devtool: isDev ? "cheap-module-source-map" : "hidden-source-map",
module: {
rules: [
{
Expand Down

0 comments on commit e9cc5a9

Please sign in to comment.