mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore: adjust ci to save size-limit build time (#44148)
* chore: adjust ci * chore: add message * chore: lint
This commit is contained in:
@@ -24,7 +24,14 @@ function externalDayjs(config) {
|
||||
};
|
||||
}
|
||||
|
||||
const webpackConfig = getWebpackConfig(false);
|
||||
let webpackConfig = getWebpackConfig(false);
|
||||
|
||||
// Used for `size-limit` ci which only need to check min files
|
||||
if (process.env.PRODUCTION_ONLY) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('🍐 Build production only');
|
||||
webpackConfig = webpackConfig.filter((config) => config.mode === 'production');
|
||||
}
|
||||
|
||||
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||
webpackConfig.forEach((config) => {
|
||||
|
||||
Reference in New Issue
Block a user