This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 2da47829 fix webpack can't work in node > 16
2da47829 is described below
commit 2da4782973ce5298ae2c505472d7af55d0554ddc
Author: plainheart <[email protected]>
AuthorDate: Sat Feb 3 09:54:50 2024 +0800
fix webpack can't work in node > 16
---
package-lock.json | 19 +++++++++++++++++++
package.json | 7 ++++---
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index d93cb3c1..23f3d254 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -33,6 +33,7 @@
"babel-loader": "^8.1.0",
"chalk": "^3.0.0",
"concurrently": "^5.3.0",
+ "cross-env": "^7.0.3",
"css-loader": "^3.5.3",
"cwebp-bin": "^6.1.1",
"download-git-repo": "^3.0.2",
@@ -3340,6 +3341,24 @@
"node": ">=0.10.0"
}
},
+ "node_modules/cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity":
"sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "bin": {
+ "cross-env": "src/bin/cross-env.js",
+ "cross-env-shell": "src/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=10.14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
"node_modules/cross-spawn": {
"version": "7.0.3",
"dev": true,
diff --git a/package.json b/package.json
index a03b463c..a1030f7d 100644
--- a/package.json
+++ b/package.json
@@ -4,11 +4,11 @@
"license": "Apache-2.0",
"private": true,
"scripts": {
- "build": "npx webpack --config build/webpack.config.js --mode production",
- "watch": "npx webpack --config build/webpack.config.js --mode development
--devtool source-map --watch",
+ "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack
--config build/webpack.config.js --mode production",
+ "watch": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack
--config build/webpack.config.js --mode development --devtool source-map
--watch",
"localsite": "npm run compile:example && npm run build && node
build/copyResource.js --env localsite",
"release": "npm run compile:example && npm run build && node
build/copyResource.js --env asf",
- "dev": "npx concurrently --kill-others \"npm:watch\" \"npm:server\"",
+ "dev": "concurrently --kill-others \"npm:watch\" \"npm:server\"",
"build:example": "npm run compile:example && node tool/build-example.js &&
node tool/build-example.js --gl",
"build:examplelist": "npm run compile:example && node
tool/build-example.js --no-thumb && node tool/build-example.js --no-thumb --gl",
"compile:example": "node tool/compile-example.js",
@@ -29,6 +29,7 @@
"babel-loader": "^8.1.0",
"chalk": "^3.0.0",
"concurrently": "^5.3.0",
+ "cross-env": "^7.0.3",
"css-loader": "^3.5.3",
"cwebp-bin": "^6.1.1",
"download-git-repo": "^3.0.2",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]