typescript编译
tsc --watch -p tsconfig.json
用 less-watch-compiler 编译less
less-watch-compiler --config less-watch.json
在vscode环境中使用npm后台监控文件变化自动编译,在package.json中加入
"scripts": {
"start": "concurrently \"tsc --watch -p tsconfig.json\" \"less-watch-compiler --config less-watch.json\""
}
npm执行脚本
npm run start
但cup占用率。。。
开发环境里终端输入命令会出现卡顿现象,后来改成使用gulp-watch
先安装