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:
Viorel Cojocaru 2020-07-09 04:27:32 +02:00 committed by GitHub
parent b3a7ed5575
commit f507a21c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {