Skip to content

Instantly share code, notes, and snippets.

@tonysaffo
Created March 22, 2017 18:50
Show Gist options
  • Save tonysaffo/76471dffca4ae4f068cc4ab1d7c95d8a to your computer and use it in GitHub Desktop.
Save tonysaffo/76471dffca4ae4f068cc4ab1d7c95d8a to your computer and use it in GitHub Desktop.
Gulpfile.js
var gulp = require('gulp'),
sass = require('gulp-sass');
gulp.task('sass',function(){
return gulp.src('app/sass/**/*.sass')
.pipe(sass())
.pipe(gulp.dest('app/css'));
});
gulp.task('watch',function(){
gulp.watch('app/sass/**/*.sass', ['sass']); // через запятую в массиве все таски которые нужно выполнять при обновлении
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment