mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
chore: fix debug demo of site (#30427)
* chore: fix debug demo of site * upgrade bisheng * upgrade bisheng
This commit is contained in:
parent
ebb8fc3fc0
commit
8e76c1c5ae
@ -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",
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user