Remove sourcemaps for production
This commit is contained in:
parent
2e53bb6690
commit
d16b35ed0b
|
@ -11,7 +11,7 @@ const prod = process.env.NODE_ENV === "production" || process.env.CI === "true";
|
||||||
|
|
||||||
module.exports = (options = {}) => merge(
|
module.exports = (options = {}) => merge(
|
||||||
require("./webpack.general.config")(options), {
|
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",
|
mode: prod ? "production" : "development",
|
||||||
entry: prod ? options.entry : [
|
entry: prod ? options.entry : [
|
||||||
"webpack-hot-middleware/client?reload=true&quiet=true",
|
"webpack-hot-middleware/client?reload=true&quiet=true",
|
||||||
|
|
Loading…
Reference in New Issue