Skip to content

Instantly share code, notes, and snippets.

@Xavka
Last active March 3, 2016 08:28
Show Gist options
  • Save Xavka/f96f2865d7f5a7ede390 to your computer and use it in GitHub Desktop.
Save Xavka/f96f2865d7f5a7ede390 to your computer and use it in GitHub Desktop.
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