mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +00:00
infer NODE_ENV from isProd
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = function(_, env) {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mode: env.mode || 'development',
|
mode: isProd ? 'production' : 'development',
|
||||||
entry: path.join(__dirname, 'config/client-boot.js'),
|
entry: path.join(__dirname, 'config/client-boot.js'),
|
||||||
// entry: './src/index',
|
// entry: './src/index',
|
||||||
output: {
|
output: {
|
||||||
|
|||||||
Reference in New Issue
Block a user