Browse Source

chore: fix debug demo of site (#30427)

* chore: fix debug demo of site

* upgrade bisheng

* upgrade bisheng
pull/30391/head
afc163 4 years ago
committed by GitHub
parent
commit
8e76c1c5ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      package.json
  2. 3
      site/bisheng.config.js
  3. 3
      webpack.config.js

2
package.json

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

3
site/bisheng.config.js

@ -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
webpack.config.js

@ -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…
Cancel
Save