From 2f091e7dfbe7bd286e62d3459ef58b2096ebce04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Sun, 5 Apr 2020 21:44:41 +0800 Subject: [PATCH] chore: fix packtracker token (#22942) * chore: fix packtracker token * change prior_commit * :wastebasket: remove packtracker webpack plugin --- package.json | 1 - webpack.config.js | 21 --------------------- 2 files changed, 22 deletions(-) diff --git a/package.json b/package.json index 42ff66993a..ed7734ce2d 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,6 @@ "@ant-design/colors": "^4.0.0", "@ant-design/hitu": "^0.0.0-alpha.13", "@ant-design/tools": "^8.0.4", - "@packtracker/webpack-plugin": "^2.0.1", "@qixian.cs/github-contributors-list": "^1.0.3", "@stackblitz/sdk": "^1.3.0", "@types/classnames": "^2.2.8", diff --git a/webpack.config.js b/webpack.config.js index 4c6cab6dd7..38b5cf45db 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,6 @@ /* eslint no-param-reassign: 0 */ // This config is for building dist files const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig'); -const PacktrackerPlugin = require('@packtracker/webpack-plugin'); const IgnoreEmitPlugin = require('ignore-emit-webpack-plugin'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const darkVars = require('./scripts/dark-vars'); @@ -56,19 +55,6 @@ function processWebpackThemeConfig(themeConfig, theme, vars) { const themeReg = new RegExp(`${theme}(.min)?\\.js(\\.map)?$`); // ignore emit ${theme} entry js & js.map file config.plugins.push(new IgnoreEmitPlugin(themeReg)); - - // skip codesandbox ci - if (!process.env.CSB_REPO) { - // https://docs.packtracker.io/uploading-your-webpack-stats/webpack-plugin - config.plugins.push( - new PacktrackerPlugin({ - project_token: '30c6a021-96c0-4d67-8bd2-0d2fcbd8962b', - upload: process.env.CI === 'true', - fail_build: false, - exclude_assets: name => ![`antd.${theme}.min.js`, `antd.${theme}.min.css`].includes(name), - }), - ); - } }); } @@ -84,14 +70,7 @@ if (process.env.RUN_ENV === 'PRODUCTION') { config.optimization.usedExports = true; // skip codesandbox ci if (!process.env.CSB_REPO) { - // https://docs.packtracker.io/uploading-your-webpack-stats/webpack-plugin config.plugins.push( - new PacktrackerPlugin({ - project_token: '30c6a021-96c0-4d67-8bd2-0d2fcbd8962b', - upload: process.env.CI === 'true', - fail_build: false, - exclude_assets: name => !['antd.min.js', 'antd.min.css'].includes(name), - }), new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false,