1、打开cmd安装:npm install -g browser-sync(用node.js的npm包全局安装);
2、在项目所在目录,cmd运行browser-sync start --server --files "**/*.css, **/*.html",会自动打开到浏览器;
3、好啦,结束!
1、打开cmd安装:npm install -g browser-sync(用node.js的npm包全局安装);
2、在项目所在目录,cmd运行browser-sync start --server --files "**/*.css, **/*.html",会自动打开到浏览器;
3、好啦,结束!
本文标题:browser-sync使用简记(静态页面)
本文链接:https://www.haomeiwen.com/subject/lauegqtx.html
网友评论