Created
May 23, 2015 21:20
-
-
Save dielduarte/0f047ca4cbb9390c2fca to your computer and use it in GitHub Desktop.
compiling itcss architecture using sass and gulp
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'), | |
minifyCSS = require('gulp-minify-css'), | |
concat = require('gulp-concat'), | |
rename = require('gulp-rename'), | |
sass = require('gulp-sass'), | |
cssGlobbing = require('gulp-css-globbing'); | |
// Task for concat and minfier and convert sass to css files | |
gulp.task('css', function() { | |
gulp.src('./main.scss') | |
.pipe(cssGlobbing({ extensions: ['.css', '.scss'] })) | |
.pipe(sass()) | |
.pipe(concat('main.css')) | |
.pipe(minifyCSS(opts)) | |
.pipe(rename({suffix: '.min'})) | |
.pipe(gulp.dest('./')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment