Last active
August 15, 2016 23:51
-
-
Save simplesthing/987a674987fc92ffeb593c329f7712ac to your computer and use it in GitHub Desktop.
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'), | |
postcss = require('gulp-postcss') | |
path = require('path') | |
fs = require('fs'); | |
var processors = [ | |
require("postcss-import")({}), | |
require('precss')(), | |
require("postcss-url")(), | |
require('postcss-mixins')(), | |
require('postcss-functions')({ | |
glob: path.join(__dirname, '..', 'node_modules', '@ll', 'sansarweb-functions-css', '*.js') | |
}), | |
require('postcss-conditionals')(), | |
require('postcss-hexrgba')(), | |
require("postcss-cssnext")(), | |
require('postcss-calc')(), | |
require('postcss-custom-properties')(), | |
require('postcss-calc')({ | |
mediaQueries: true | |
}) | |
] | |
gulp.task('css', function(){ | |
return gulp.src('src/*.css') | |
.pipe(postcss(processors)) | |
.pipe(gulp.dest('dist')) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment