Last active
March 3, 2016 08:28
-
-
Save Xavka/f96f2865d7f5a7ede390 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'); | |
var postcss = require('gulp-postcss'); | |
var atImport = require('postcss-import'); | |
var autoprefixer = require('autoprefixer'); | |
var cssnano = require('cssnano'); | |
gulp.task('css', function () { | |
var plugins = [ | |
atImport, | |
autoprefixer, | |
cssnano | |
]; | |
return gulp.src('./src/style.css') | |
.pipe(postcss(plugins)) | |
.pipe(gulp.dest('./dest')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment