Browse Source

📦 use ESBUILD in codesandbox ci (#24685)

pull/24687/head
偏右 5 years ago
committed by GitHub
parent
commit
6529d9048f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      webpack.config.js

2
webpack.config.js

@ -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();
}

Loading…
Cancel
Save