Remove sourcemaps for production

This commit is contained in:
Kyle Carberry 2019-03-14 22:58:12 +00:00
parent 2e53bb6690
commit d16b35ed0b
No known key found for this signature in database
GPG Key ID: 42E8F51E81E8201C
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const prod = process.env.NODE_ENV === "production" || process.env.CI === "true";
module.exports = (options = {}) => merge(
require("./webpack.general.config")(options), {
devtool: prod ? "source-map" : "cheap-module-eval-source-map",
devtool: prod ? "none" : "cheap-module-eval-source-map",
mode: prod ? "production" : "development",
entry: prod ? options.entry : [
"webpack-hot-middleware/client?reload=true&quiet=true",