Created
April 12, 2015 15:28
-
-
Save defeated/ba5cbfe034837a237631 to your computer and use it in GitHub Desktop.
gulp-postcss + autoprefixer
This file contains hidden or 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'), | |
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' ]); |
This file contains hidden or 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
{ | |
"scripts": { | |
"start": "gulp" | |
}, | |
"devDependencies": { | |
"autoprefixer-core": "^5.1.8", | |
"gulp": "^3.8.11", | |
"gulp-postcss": "^5.1.0", | |
} | |
} |
This file contains hidden or 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
.container { | |
display: flex; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run with
npm start