Skip to content

Commit bd17ff2

Browse files
committed
Automatically target production for client-side builds
1 parent 6c6d5ce commit bd17ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/webpack.client.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
77
// const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
88

99
const root = path.join(__dirname, "..");
10-
const prod = process.env.NODE_ENV === "production";
10+
const prod = process.env.NODE_ENV === "production" || process.env.CI === "true";
1111

1212
module.exports = (options = {}) => merge(
1313
require("./webpack.general.config")(options), {

0 commit comments

Comments
 (0)