mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
📦 use ESBUILD in codesandbox ci (#24685)
This commit is contained in:
parent
2e15bf752e
commit
6529d9048f
@ -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…
Reference in New Issue
Block a user