chore: wrong env variable in build

This commit is contained in:
afc163 2020-05-13 17:14:33 +08:00
parent 50e33768a9
commit 6093f11cf0

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