Created
January 23, 2018 17:15
-
-
Save naufaldi/33dbdefc82a97242493fea9a0b7eca86 to your computer and use it in GitHub Desktop.
gulp task for browserSync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task("serve", function(){ | |
browserSync.init({ | |
server: { | |
baseDir: "./public/" | |
} | |
}) | |
gulp.watch("./resource/assets/sass/**/*.scss",['sass']); | |
gulp.watch("./public/assets/css/**/*.css").on("change",browserSync.reload) | |
gulp.watch("./public/*.html").on("change", browserSync.reload) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment