diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index c924d3ddb7..5a19ca0cfb 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -73,7 +73,7 @@ jobs: - name: build dist and bundle analyzer report run: npm run dist env: - CI: false + ANALYZER: 1 - name: Get version id: publish-version diff --git a/webpack.config.js b/webpack.config.js index 05f6c0a700..a6adb91995 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -39,7 +39,7 @@ if (process.env.RUN_ENV === 'PRODUCTION') { }); } - if (!process.env.CI) { + if (!process.env.CI || process.env.ANALYZER) { config.plugins.push( new BundleAnalyzerPlugin({ analyzerMode: 'static',