标签:not htm oca host file pac serve html sync
1.安装browser-sync:
npm i browser-sync --save-dev
2.在package.json中添加启动代码:
"start": "./node_modules/.bin/browser-sync start --server --no-notify --files=‘index.html,*.css,*.js"
3.运行:npm run start ,监听在localhost:3000端口;
标签:not htm oca host file pac serve html sync
原文地址:https://www.cnblogs.com/yangguoe/p/9886353.html