npm install --save-dev gulp
npm install --save-dev gulp-sass
npm install --save-dev gulp-minify-css
Created
December 16, 2015 16:32
-
-
Save jessgusclark/397866e31d1cbbee987f to your computer and use it in GitHub Desktop.
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'); | |
var concat = require('gulp-concat'); | |
var minifyCss = require('gulp-minify-css'); | |
gulp.task('sass', function () { | |
gulp.src('./source/sass/**/*.scss') | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest('./assets/css')) | |
.pipe(concat('app.min.css')) | |
.pipe(minifyCss()) | |
.pipe(gulp.dest('./assets/css/')); | |
}); | |
gulp.task('sass:watch', function () { | |
gulp.watch('./source/sass/**/*.scss', ['sass']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment