我正在本地开展一个简单的角度项目。要运行它,我使用
npm start
给我这个输出
> angular2-quickstart@1.0.0 start /Applications/dev/startupbooks
> tsc && concurrently "tsc -w" "lite-server"
[1] Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
[1] ** browser-sync config **
[1] { injectChanges: false,
[1] files: [ './**/*.{html,htm,css,js}' ],
[1] watchOptions: { ignored: 'node_modules' },
[1] server: { baseDir: './', middleware: [ [Function], [Function] ] } }
[1] [BS] Access URLs:
[1] --------------------------------------
[1] Local: http://localhost:3002
[1] External: http://192.168.0.157:3002
[1] --------------------------------------
[1] UI: http://localhost:3003
[1] UI External: http://192.168.0.157:3003
[1] --------------------------------------
[1] [BS] Serving files from: ./
[1] [BS] Watching files...
当我编辑打字稿文件时,大约需要10秒才能看到更改,重新编译打字稿并使用browsersync刷新浏览器。
我有什么办法可以加快速度吗?
我可以强制打字稿在保存时重新编译吗?
非常感谢任何帮助。