Automatically target production for client-side builds

This commit is contained in:
Kyle Carberry 2019-03-14 22:29:19 +00:00
parent e3d9716607
commit 2e53bb6690
No known key found for this signature in database
GPG Key ID: 42E8F51E81E8201C
1 changed files with 1 additions and 1 deletions

View File

@ -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), {