Skip to content

Instantly share code, notes, and snippets.

@dmitrylebedev
Last active October 10, 2016 07:26
Show Gist options
  • Save dmitrylebedev/60ed548fee8e6ebd655fce116ba14fcd to your computer and use it in GitHub Desktop.
Save dmitrylebedev/60ed548fee8e6ebd655fce116ba14fcd to your computer and use it in GitHub Desktop.
gulptask
// Локальный сервер
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