Last active
October 10, 2016 07:26
-
-
Save dmitrylebedev/60ed548fee8e6ebd655fce116ba14fcd to your computer and use it in GitHub Desktop.
gulptask
This file contains 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() { | |
server.init({ | |
server: "build" | |
}); | |
gulp.watch("sass/**/*.{scss,sass}", ["style"]); | |
gulp.watch("*.html", ["copyhtml"]); | |
gulp.watch("build/*.html").on("change", server.reload); | |
}); | |
// Копирует html из корня проекта в папку build | |
gulp.task("copyhtml", function() { | |
return gulp.src("*.html") | |
.pipe(gulp.dest("build/")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment