Created
November 27, 2017 19:18
-
-
Save gussiciliano/4aca984dac09628d0f8497cb8518ad0a to your computer and use it in GitHub Desktop.
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
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
gutil = require('gulp-util'); | |
gulp.task('sass', function () { | |
return gulp.src('assets/styles/site.scss') | |
.pipe( sass( { outputStyle: 'compressed' } ) ) | |
.pipe(gulp.dest('wwwroot/css')); | |
}); | |
gulp.task('watch:sass', function () { | |
gulp.watch([ | |
'./assets/styles/*.scss', | |
'!./bin/**/*', | |
'!./obj/**/*', | |
], { | |
interval: 250 | |
}, ['sass']).on('change', function (event) { | |
gutil.log(`File ${event.path} was ${event.type}, running task.`); | |
}) | |
}) | |
gulp.task( 'default', ['watch:sass'] ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment