Skip to content

Instantly share code, notes, and snippets.

@defeated
Created April 12, 2015 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defeated/ba5cbfe034837a237631 to your computer and use it in GitHub Desktop.
Save defeated/ba5cbfe034837a237631 to your computer and use it in GitHub Desktop.
gulp-postcss + autoprefixer
var gulp = require('gulp'),
postcss = require('gulp-postcss'),
autoprefix = require('autoprefixer-core');
gulp.task('css', function() {
return gulp.src('test.css')
.pipe(postcss([ autoprefix() ]))
.pipe(gulp.dest('dist/css'));
});
gulp.task('default', [ 'css' ]);
{
"scripts": {
"start": "gulp"
},
"devDependencies": {
"autoprefixer-core": "^5.1.8",
"gulp": "^3.8.11",
"gulp-postcss": "^5.1.0",
}
}
.container {
display: flex;
}
@defeated
Copy link
Author

run with npm start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment