wrong env variable in build

This commit is contained in:
afc163 2020-05-13 17:14:33 +08:00
parent 53d7a20939
commit 68119768cc

View File

@ -76,7 +76,7 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
// Reduce non-minified dist files size
config.optimization.usedExports = true;
// use esbuild
if (process.env.CSB_REPO) {
if (process.env.ESBUILD) {
config.optimization.minimizer[0] = new EsbuildPlugin();
}
// skip codesandbox ci