mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-26 12:15:26 +00:00
Automatically target production for client-side builds
This commit is contained in:
parent
e3d9716607
commit
2e53bb6690
@ -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 New Issue
Block a user