mirror of
https://github.com/cdr/code-server.git
synced 2025-12-06 16:34:35 +01:00
Automatically target production for client-side builds
This commit is contained in:
parent
e3d9716607
commit
2e53bb6690
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|||
// const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
||||
|
||||
const root = path.join(__dirname, "..");
|
||||
const prod = process.env.NODE_ENV === "production";
|
||||
const prod = process.env.NODE_ENV === "production" || process.env.CI === "true";
|
||||
|
||||
module.exports = (options = {}) => merge(
|
||||
require("./webpack.general.config")(options), {
|
||||
|
|
|
|||
Loading…
Reference in a new issue