Created
March 16, 2015 00:23
-
-
Save simonsmith/092b761268e5e546c856 to your computer and use it in GitHub Desktop.
Compiling SUIT with gulp and postcss
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'); | |
var bemLinter = require('postcss-bem-linter'); | |
var atImport = require('postcss-import'); | |
var cssnext = require('cssnext'); | |
var postcss = require('gulp-postcss'); | |
var concat = require('gulp-concat'); | |
var notify = require('gulp-notify'); | |
var stylus = require('gulp-stylus'); | |
gulp.task('css', function() { | |
return gulp.src('*.styl') | |
.pipe(stylus().on('error', error)) | |
.pipe(postcss([bemLinter()]).on('error', error)) | |
.pipe(concat('built.css')) | |
.pipe(postcss([atImport(), cssnext()])) | |
.pipe(gulp.dest('./built')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment