mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +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:
parent
5af2dcc384
commit
48e4e89e32
1
.github/workflows/size-limit.yml
vendored
1
.github/workflows/size-limit.yml
vendored
@ -64,3 +64,4 @@ jobs:
|
|||||||
skip_step: install
|
skip_step: install
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: --max_old_space_size=4096
|
NODE_OPTIONS: --max_old_space_size=4096
|
||||||
|
PRODUCTION_ONLY: 1
|
||||||
|
@ -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') {
|
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||||
webpackConfig.forEach((config) => {
|
webpackConfig.forEach((config) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user