【发布时间】:2020-11-14 00:21:38
【问题描述】:
这是 package.joson 文件的脚本,我的 onchange 和 parallelshell 模块已完全更新。
```
"scripts": {
"start": "npm run watch:all",
"test": "echo \"Error: no test specified\" && exit 1",
"lite": "lite-server",
"scss": "node-sass -o css/ css/",
"watch:scss": "onchange \"css/*.scss\" -- npm run scss",
"watch:all": "parallelshell \"npm run watch:scss\" \"npm run lite\""
},
```
如果您想在 MAC 或 linux 上运行代码,请将 /" 替换为单个 报价(')。
【问题讨论】:
标签: node.js npm onchange npm-scripts