Skip to content

Instantly share code, notes, and snippets.

@defeated
Created Apr 12, 2015
Embed
What would you like to do?
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

defeated commented Apr 12, 2015

run with npm start

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