Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

gulp-autoprefixer

Prefix CSS

Subscribe to updates I use gulp-autoprefixer


Statistics on gulp-autoprefixer

Number of watchers on Github 599
Number of open issues 4
Average time to close an issue 6 days
Main language JavaScript
Average time to merge a PR about 13 hours
Open pull requests 3+
Closed pull requests 14+
Last commit over 1 year ago
Repo Created about 5 years ago
Repo Last Updated over 1 year ago
Size 30 KB
Organization / Authorsindresorhus
Latest Releasev2.0.0
Contributors4
Page Updated
Do you use gulp-autoprefixer? Leave a review!
View open issues (4)
View gulp-autoprefixer activity
View on github
Fresh, new opensource launches šŸš€šŸš€šŸš€
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating gulp-autoprefixer for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

gulp-autoprefixer Build Status

Prefix CSS with Autoprefixer

Issues with the output should be reported on the Autoprefixer issue tracker.

Install

$ npm install --save-dev gulp-autoprefixer

Usage

const gulp = require('gulp');
const autoprefixer = require('gulp-autoprefixer');

gulp.task('default', () =>
    gulp.src('src/app.css')
        .pipe(autoprefixer({
            browsers: ['last 2 versions'],
            cascade: false
        }))
        .pipe(gulp.dest('dist'))
);

API

autoprefixer([options])

options

Type: Object

See the Autoprefixer options.

Source Maps

Use gulp-sourcemaps like this:

const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const autoprefixer = require('gulp-autoprefixer');
const concat = require('gulp-concat');

gulp.task('default', () =>
    gulp.src('src/**/*.css')
        .pipe(sourcemaps.init())
        .pipe(autoprefixer())
        .pipe(concat('all.css'))
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest('dist'))
);

Tip

If you use other PostCSS based tools, like cssnano, you may want to run them together using gulp-postcss instead of gulp-autoprefixer. It will be faster, as the CSS is parsed only once for all PostCSS based tools, including Autoprefixer.

License

MIT Sindre Sorhus

gulp-autoprefixer open issues Ask a question     (View All Issues)
  • almost 4 years source maps are incorrect when compiling from SCSS
gulp-autoprefixer open pull requests (View All Pulls)
  • Include existing Source Maps when passing options to Autoprefixer / Pā€¦
  • Updating sourcemap paths, relative to file.base
  • Upgrade to Autoprefixer 8
gulp-autoprefixer questions on Stackoverflow (View All Questions)
  • gulp autoprefixer compiling to .scss not .css
  • Gulp autoprefixer not working with gulp compass
  • Gulp-autoprefixer throwing ReferenceError: Promise is not defined
  • Trying to integrate gulp SASS with gulp Autoprefixer-postcss, failing miserably
  • gulp autoprefixer giving me a promise error
  • Does gulp-autoprefixer work with gulp-compass?
  • Gulp Autoprefixer Not Working
  • gulp autoprefixer gives invalid icon content of font-awesome
  • gulp-autoprefixer simply doesn't work
  • gulp-autoprefixer with gulp-sass not creating prefixers
  • Proper sourcemapping pipeline with gulp-ruby-sass, gulp-autoprefixer, and gulp-concat
  • gulp autoprefixer doesn't add moz prefix
  • gulp-minify-css not playing nice with gulp-autoprefixer
  • gulp-autoprefixer not compiling CSS3
gulp-autoprefixer list of languages used
gulp-autoprefixer latest release notes
v2.0.0 2.0.0 - bump to autoprefixer-core 4.0.0

autoprefixer-core changelog

Other projects in JavaScript