Created
September 24, 2014 22:09
-
-
Save jxnblk/6e06a860da2cf593854a 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
var gulp = require('gulp'); | |
var fs = require('fs'); | |
// Suitcss | |
var suit = require('suitcss-preprocessor'); | |
gulp.task('suit', function() { | |
var src = fs.readFileSync('./src/base.css', 'utf8'); | |
var bundle = suit(src, {}); | |
fs.writeFileSync('./base-suitcss.css', bundle); | |
}); | |
// Myth.io | |
var myth = require('myth'); | |
gulp.task('myth', function() { | |
var src = fs.readFileSync('./src/base.css', 'utf8'); | |
var bundle = myth(src, {}); | |
fs.writeFileSync('./base-myth.css', bundle); | |
}); | |
/* | |
* Not compatible with Basscss | |
var resin = require('topcoat-resin'); | |
var rcalc = require('rework-calc'); | |
var rmedia = require('rework-custom-media'); | |
*/ | |
/* | |
gulp.task('resin', function() { | |
var src = './src/base.css'; | |
var bundle = resin({ src: src, use: [rcalc, rmedia()] }); | |
fs.writeFileSync('./base-resin.css', bundle); | |
}); | |
*/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment