From 7be4712c52ed5a6b62ff68b67cc07ca9620f76d6 Mon Sep 17 00:00:00 2001 From: woytu <394585829@qq.com> Date: Sat, 25 May 2024 14:23:05 +0800 Subject: [PATCH] fixed webpack of terser-webpack-plugin which also uses md4 --- .github/workflows/deloy.yml | 3 ++- package.json | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deloy.yml b/.github/workflows/deloy.yml index 9dc4ee896..0fc9fd4b7 100644 --- a/.github/workflows/deloy.yml +++ b/.github/workflows/deloy.yml @@ -29,7 +29,8 @@ jobs: git config --global user.name "bajins" # export LESSCHARSET=utf-8 # https://github.com/vuejs/vuepress/issues/3136 - export NODE_OPTIONS=--openssl-legacy-provider + # https://stackoverflow.com/questions/74797727/error-error0308010cdigital-envelope-routinesunsupported + # export NODE_OPTIONS=--openssl-legacy-provider - name: Checkout uses: actions/checkout@v4 diff --git a/package.json b/package.json index 0e3d33e56..dd9839726 100644 --- a/package.json +++ b/package.json @@ -69,5 +69,10 @@ "vuepress-plugin-fulltext-search": "^2.2.1", "vuepress-plugin-plausible-analytics": "^0.2.1", "vuepress-plugin-right-anchor": "^0.5.5" + }, + "overrides": { + "webpack@4.47.0": { + "terser-webpack-plugin": "^4.2.3" + } } }