Skip to content

Commit

Permalink
fix(webpack): fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hankliu62 committed Apr 22, 2024
1 parent f329e24 commit b3108e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"start": "antd-tools run clean && cross-env NODE_ENV=development NODE_OPTIONS=--openssl-legacy-provider concurrently \"bisheng start -c ./site/bisheng.config.js\"",
"clean": "antd-tools run clean && rm -rf es lib coverage dist report.html",
"compile": "npm run clean && antd-tools run compile && antd-tools run dist",
"compile": "npm run clean && antd-tools run compile && cross-env NODE_OPTIONS=--openssl-legacy-provider antd-tools run dist",
"dist": "antd-tools run dist",
"prepublishOnlyNot": "npm run compile",
"site": "rimraf _site && cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production OUTPUT=_website bisheng build --ssr -c ./site/bisheng.config.js",
Expand Down
18 changes: 9 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
});
}

// if (process.env.NODE_ENV === 'development') {
// config.plugins.push(
// new BundleAnalyzerPlugin({
// analyzerMode: 'static',
// openAnalyzer: false,
// reportFilename: '../report.html',
// }),
// );
// }
if (!process.env.CI) {
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
reportFilename: '../report.html',
}),
);
}

if (!process.env.NO_DUP_CHECK) {
config.plugins.push(
Expand Down

0 comments on commit b3108e2

Please sign in to comment.