ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] ## 监听 文件变化,刷新页面 `npm install gulp-livereload` ``` const livereload = require("gulp-livereload"); function Watch(){ watch('src/*.scss', style); //监听文件变动 livereload.listen(); gulp.watch(['dist/**']).on('change', livereload.changed); } exports.watch = Watch ``` 执行`gulp watch`