Created
January 16, 2017 16:30
-
-
Save josemunozr/1e7376c9e7f9a924bf8550d032a6077b to your computer and use it in GitHub Desktop.
Example Sass
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
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
gulp.task('sass', function () { | |
return gulp.src('./public/sass/index.scss') | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest('./public/css')); | |
}); | |
gulp.task('sass:watch', function () { | |
gulp.watch('./public/sass/index.scss', ['sass']); | |
}); | |
gulp.task('default',['sass','sass:watch']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment