mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +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
|
// Reduce non-minified dist files size
|
||||||
config.optimization.usedExports = true;
|
config.optimization.usedExports = true;
|
||||||
// use esbuild
|
// use esbuild
|
||||||
if (process.env.ESBUILD) {
|
if (process.env.ESBUILD || process.env.CSB_REPO) {
|
||||||
config.optimization.minimizer[0] = new EsbuildPlugin();
|
config.optimization.minimizer[0] = new EsbuildPlugin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user