We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25794fd commit 734c833Copy full SHA for 734c833
.github/workflows/jekyll.yml
@@ -36,7 +36,7 @@ jobs:
36
- name: Setup node
37
uses: actions/setup-node@v3
38
with:
39
- node-version: '18'
+ node-version: '23'
40
- name: Npm build
41
run: npm install && npm run build-prod
42
- name: Setup Ruby
webpack.config.js
@@ -1,6 +1,6 @@
1
const path = require('path');
2
const CopyPlugin = require("copy-webpack-plugin");
3
-
+const TerserPlugin = require('terser-webpack-plugin');
4
module.exports = {
5
mode: process.env.NODE_ENV,
6
entry: {
@@ -21,4 +21,11 @@ module.exports = {
21
],
22
}),
23
24
+ optimization: {
25
+ minimizer: [
26
+ new TerserPlugin({
27
+ exclude: /mathjax/, // 排除 mathjax 文件,使其不被压缩
28
+ }),
29
+ ],
30
+ },
31
};
0 commit comments