|
1015 | 1015 | ]
|
1016 | 1016 | },
|
1017 | 1017 | "scripts": {
|
1018 |
| - "compile": "webpack && npm run ui:compile", |
1019 |
| - "ui:compile": "webpack -c ./ui/webpack.config.mjs", |
1020 |
| - "watch": "webpack --watch", |
| 1018 | + "watch": "webpack --watch --mode=development", |
1021 | 1019 | "ui:watch": "webpack watch -c ./ui/webpack.config.mjs",
|
1022 | 1020 | "package": "webpack --mode production --devtool hidden-source-map",
|
1023 | 1021 | "ui:package": "webpack --mode production --devtool hidden-source-map -c ./ui/webpack.config.mjs",
|
1024 | 1022 | "compile-tests": "tsc -p ./tsconfig.integration.json --outDir out",
|
1025 | 1023 | "test:integration:watch": "npm run compile-tests -- --watch",
|
1026 | 1024 | "test:integration": "npm run compile-tests && node ./out/test/runTest.js",
|
1027 | 1025 | "test:unit": "jest -c ./test/jest.config.mjs",
|
1028 |
| - "pretest": "npm run compile-tests && npm run compile && npm run lint", |
1029 | 1026 | "lint": "eslint src/ ui/",
|
1030 | 1027 | "format": "prettier --write .",
|
1031 | 1028 | "format-check": "prettier --check .",
|
1032 |
| - "download-icons": "node ./download-iconfont.mjs" |
| 1029 | + "download-icons": "node ./download-iconfont.mjs", |
| 1030 | + "stats": "npm run --silent package -- --env namedChunks=true --profile --json > ./dist/stats.json && webpack-bundle-analyzer ./dist/stats.json ./dist" |
1033 | 1031 | },
|
1034 | 1032 | "devDependencies": {
|
1035 | 1033 | "@cnblogs/eslint-config-typescript": "^1.0.1",
|
|
1073 | 1071 | "prettier": "^2.5.0",
|
1074 | 1072 | "style-loader": "^3.3.1",
|
1075 | 1073 | "tailwindcss": "^3.0.23",
|
1076 |
| - "terser-webpack-plugin": "^5.3.6", |
| 1074 | + "terser-webpack-plugin": "^5.3.7", |
1077 | 1075 | "ts-jest": "^29.0.5",
|
1078 | 1076 | "ts-loader": "^9.2.5",
|
1079 | 1077 | "ts-node": "^10.9.1",
|
1080 | 1078 | "tsconfig-paths-webpack-plugin": "^3.5.2",
|
1081 | 1079 | "typescript": "^4.8.4",
|
1082 | 1080 | "utility-types": "^3.10.0",
|
1083 |
| - "webpack": "5.70.x", |
1084 |
| - "webpack-cli": "^4.8.0" |
| 1081 | + "webpack": "^5.76.0", |
| 1082 | + "webpack-cli": "^5.0.1" |
1085 | 1083 | },
|
1086 | 1084 | "dependencies": {
|
1087 | 1085 | "@cnblogs/code-highlight-adapter": "^1.7.1",
|
1088 | 1086 | "@cnblogs/code-quality": "^2.0.2",
|
1089 |
| - "@cnblogs/markdown-it-presets": "^1.6.1", |
| 1087 | + "@cnblogs/markdown-it-presets": "1.9", |
1090 | 1088 | "@fluentui/react": "^8.62.4",
|
1091 | 1089 | "base64url": "^3.0.1",
|
1092 | 1090 | "blob": "^0.1.0",
|
|
0 commit comments