Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

infer NODE_ENV from isProd

Jason Miller83a0bd16dd45
diff --git a/webpack.config.js b/webpack.config.js
index f3475162..47e5294c 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -25,7 +25,7 @@ module.exports = function(_, env) {
];
return {
- mode: env.mode || 'development',
+ mode: isProd ? 'production' : 'development',
entry: path.join(__dirname, 'config/client-boot.js'),
// entry: './src/index',
output: {