chore: fix debug demo of site (#30427)

* chore: fix debug demo of site

* upgrade bisheng

* upgrade bisheng
This commit is contained in:
afc163 2021-05-07 15:29:08 +08:00 committed by GitHub
parent ebb8fc3fc0
commit 8e76c1c5ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -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",

View File

@ -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');
@ -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',

View File

@ -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');
@ -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',
});