📦 use ESBUILD in codesandbox ci (#24685)

This commit is contained in:
偏右 2020-06-02 14:57:29 +08:00 committed by GitHub
parent 2e15bf752e
commit 6529d9048f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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