Skip to content

Commit d57ff24

Browse files
committed
update
1 parent f31da5f commit d57ff24

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

gulpfile.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ gulp.task('serve', ['compile-css', 'compile-es6'], function () {
6363
root: './',
6464
livereload: true,
6565
port: 3000,
66-
host:'192.168.1.107',
66+
host: '192.168.1.107',
6767
middleware: function (connect, opt) {
6868
return [
6969
proxy('/api', {
@@ -78,6 +78,14 @@ gulp.task('serve', ['compile-css', 'compile-es6'], function () {
7878
});
7979
gulp.watch('stylus/*.styl', ['compile-css'])
8080
gulp.watch('es2015/*.js', ['compile-es6'])
81+
gulp.watch('css/*.css', ['reload'])
82+
gulp.watch('js/*.js', ['reload'])
83+
gulp.watch('*.html', ['reload'])
84+
});
85+
86+
gulp.task('reload', function () {
87+
gulp.src('*.html')
88+
.pipe(connect.reload());
8189
});
8290

8391
gulp.task('clean', function () {

0 commit comments

Comments
 (0)