【发布时间】:2016-08-18 03:50:01
【问题描述】:
"scripts": {
"build": "babel src -d lib",
"start": "node --use_strict ./lib/index.js",
"watch": "nodemon lib/index.js --exec npm run build"
}
使用命令npm run watch 会导致运行以下错误命令:[nodemon] starting "npm lib/index.js run build"
如何编写一个 nodemon 命令,在重新加载时,使用 babel 转译代码并重新加载代码?
【问题讨论】:
标签: javascript node.js npm nodemon babeljs