mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-26 12:15:26 +00:00
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
Block a user