Last active
October 24, 2015 02:07
-
-
Save khoa-le/41734ee9d3f0ee6753a2 to your computer and use it in GitHub Desktop.
Gulp config build sass file
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
var gulp = require('gulp'), | |
sass = require('gulp-sass') | |
gulp.task('sass', function(){ | |
gulp.src(['./assets/css/main.scss', './assets/css/partials/*.scss']) | |
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError)) | |
.pipe(gulp.dest('./assets/css')) | |
}) | |
gulp.task('default', ['sass'], function(){ | |
gulp.watch(['./assets/css/main.scss', './assets/css/partials/*.scss'], ['sass']); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment