We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc1e4c commit a8f12adCopy full SHA for a8f12ad
2 files changed
README.md
@@ -73,6 +73,7 @@ bundle exec jekyll s -l # 启动 Jekyll (livereload)
73
| `npm run watch` | JS 监听模式 |
74
| `npm run dev` | 构建 + 启动开发服务器 |
75
| `npm test` | 构建站点 + HTML 校验 |
76
+| `npm run clean` | 清理所有构建产物,恢复干净状态 |
77
78
### 写文章
79
package.json
@@ -10,7 +10,8 @@
10
"build": "BUILD=production npx rollup -c --bundleConfigAsCjs",
11
"watch": "npx rollup -c --bundleConfigAsCjs -w",
12
"dev": "npm run build && bash _scripts/run.sh",
13
- "test": "bash _scripts/test.sh"
+ "test": "bash _scripts/test.sh",
14
+ "clean": "rm -rf assets/js/dist _site .jekyll-cache .jekyll-metadata node_modules && echo '✅ 已清理所有构建产物'"
15
},
16
"devDependencies": {
17
"@babel/core": "^7.24.0",
0 commit comments