mirror of https://github.com/coder/code-server.git
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(
|
||||
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",
|
||||
|
|
Loading…
Reference in New Issue