Created
October 14, 2017 00:41
-
-
Save muhibbudins/5ab6aef29470cd97ed1d1fb02930feb3 to your computer and use it in GitHub Desktop.
Example gulp autoprefixer from https://github.com/postcss/autoprefixer
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
gulp.task('autoprefixer', function () { | |
var postcss = require('gulp-postcss'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var autoprefixer = require('autoprefixer'); | |
return gulp.src('./src/*.css') | |
.pipe(sourcemaps.init()) | |
.pipe(postcss([ autoprefixer() ])) | |
.pipe(sourcemaps.write('.')) | |
.pipe(gulp.dest('./dest')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment