mirror of https://github.com/coder/code-server.git
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 { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
||||||
|
|
||||||
const root = path.join(__dirname, "..");
|
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(
|
module.exports = (options = {}) => merge(
|
||||||
require("./webpack.general.config")(options), {
|
require("./webpack.general.config")(options), {
|
||||||
|
|
Loading…
Reference in New Issue