Skip to content

Commit

Permalink
chore: fix debug demo of site (#30427)
Browse files Browse the repository at this point in the history
* chore: fix debug demo of site

* upgrade bisheng

* upgrade bisheng
  • Loading branch information
afc163 committed May 7, 2021
1 parent ebb8fc3 commit 8e76c1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"argos-cli": "^0.3.0",
"array-move": "^3.0.0",
"babel-plugin-add-react-displayname": "^0.0.5",
"bisheng": "^3.1.0-beta.1",
"bisheng": "^3.1.0-beta.4",
"bisheng-plugin-description": "^0.1.4",
"bisheng-plugin-react": "^1.1.2",
"bisheng-plugin-toc": "^0.4.4",
Expand Down
3 changes: 1 addition & 2 deletions site/bisheng.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const replaceLib = require('@ant-design/tools/lib/replaceLib');
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const { ESBuildPlugin, ESBuildMinifyPlugin } = require('esbuild-loader');
const { ESBuildMinifyPlugin } = require('esbuild-loader');
const { version } = require('../package.json');
const themeConfig = require('./themeConfig');

Expand Down Expand Up @@ -83,7 +83,6 @@ module.exports = {
};
} else if (process.env.ESBUILD) {
// use esbuild
config.plugins.push(new ESBuildPlugin());
config.optimization.minimizer = [
new ESBuildMinifyPlugin({
target: 'es2015',
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
const IgnoreEmitPlugin = require('ignore-emit-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const { ESBuildPlugin, ESBuildMinifyPlugin } = require('esbuild-loader');
const { ESBuildMinifyPlugin } = require('esbuild-loader');
const darkVars = require('./scripts/dark-vars');
const compactVars = require('./scripts/compact-vars');

Expand Down Expand Up @@ -99,7 +99,6 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
config.optimization.usedExports = true;
// use esbuild
if (process.env.ESBUILD || process.env.CSB_REPO) {
config.plugins.push(new ESBuildPlugin());
config.optimization.minimizer[0] = new ESBuildMinifyPlugin({
target: 'es2015',
});
Expand Down

0 comments on commit 8e76c1c

Please sign in to comment.