mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Fix relative-ci setup (#25523)
* build: Send stats to relative-ci only on minified compilation Prevent duplicate job for every push * build: Remove unnecessary bundle-stats option
This commit is contained in:
parent
b3a7ed5575
commit
f507a21c37
@ -60,12 +60,11 @@ function addBundleStatsWebpackPlugin(config) {
|
||||
const { BundleStatsWebpackPlugin } = require('bundle-stats-webpack-plugin');
|
||||
// eslint-disable-next-line global-require
|
||||
const { RelativeCiAgentWebpackPlugin } = require('@relative-ci/agent');
|
||||
config.plugins.push(
|
||||
new BundleStatsWebpackPlugin({
|
||||
token: process.env.BUNDLE_ANALYZER_TOKEN,
|
||||
}),
|
||||
);
|
||||
config.plugins.push(new RelativeCiAgentWebpackPlugin());
|
||||
config.plugins.push(new BundleStatsWebpackPlugin());
|
||||
|
||||
if (config.entry['antd.min']) {
|
||||
config.plugins.push(new RelativeCiAgentWebpackPlugin());
|
||||
}
|
||||
}
|
||||
|
||||
function processWebpackThemeConfig(themeConfig, theme, vars) {
|
||||
|
Loading…
Reference in New Issue
Block a user