# gulp-autoprefixer

> Prefix CSS

Latest version **10.0.0** (published 2025-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-autoprefixer
pnpm add gulp-autoprefixer
yarn add gulp-autoprefixer
bun add gulp-autoprefixer
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 10.0.0 |
| Published | 2025-09-11 |
| First published | 2013-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 4 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 682 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | gulpplugin, autoprefixer, postcss, css, prefix, prefixes, stylesheet, preprocess, postcss-runner |

## Links

- npm: https://www.npmjs.com/package/gulp-autoprefixer
- Repository: https://github.com/sindresorhus/gulp-autoprefixer
- Homepage: https://github.com/sindresorhus/gulp-autoprefixer#readme
- Issues: https://github.com/sindresorhus/gulp-autoprefixer/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/gulp-autoprefixer

## Dependencies (4)

- [postcss](https://npm.io/package/postcss.md) ^8.5.6
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.4.21
- [gulp-plugin-extras](https://npm.io/package/gulp-plugin-extras.md) ^1.1.0
- [vinyl-sourcemaps-apply](https://npm.io/package/vinyl-sourcemaps-apply.md) ^0.2.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 10.0.0 (latest) — 2025-09-11
- 9.0.0 — 2023-11-02
- 8.0.0 — 2021-05-29
- 7.0.1 — 2019-10-04
- 7.0.0 — 2019-08-18
- 6.1.0 — 2019-04-19
- 6.0.0 — 2018-08-26
- 5.0.0 — 2018-02-28
- 4.1.0 — 2017-12-29
- 4.0.0 — 2017-05-08
- 3.1.1 — 2016-08-13
- 3.1.0 — 2015-10-15
- 3.0.2 — 2015-09-23
- 3.0.1 — 2015-09-04
- 3.0.0 — 2015-09-04
- … 17 more at https://npm.io/package/gulp-autoprefixer/versions

## README

# gulp-autoprefixer

> Prefix CSS with [Autoprefixer](https://github.com/postcss/autoprefixer)

*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/postcss/autoprefixer/issues).*

## Install

```sh
npm install --save-dev gulp-autoprefixer
```

## Usage

```js
import gulp from 'gulp';
import autoprefixer from 'gulp-autoprefixer';

export default () => (
	gulp.src('src/app.css')
		.pipe(autoprefixer({
			cascade: false
		}))
		.pipe(gulp.dest('dist'))
);
```

## API

### autoprefixer(options?)

#### options

Type: `object`

See the Autoprefixer [options](https://github.com/postcss/autoprefixer#options).

## Source Maps

Use [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps) like this:

```js
import gulp from 'gulp';
import sourcemaps from 'gulp-sourcemaps';
import concat from 'gulp-concat';
import autoprefixer from 'gulp-autoprefixer';

export 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`](https://github.com/postcss/autoprefixer#gulp) instead of `gulp-autoprefixer`. It will be faster, as the CSS is parsed only once for all PostCSS based tools, including Autoprefixer.

---
_Source: https://npm.io/package/gulp-autoprefixer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
