API Reference
Autoprefixer
PostCSS plugin that adds vendor prefixes to CSS based on caniuse data, removing the need to write them by hand.
Official Documentation ↗CompatibilityThis documentation covers version
v10. Check the official docs for the latest API surface.Installation
npm
npm install autoprefixerMethods
No methods match this filter.
Autoprefixer inspects CSS and inserts the vendor prefixes required by the browsers you target.
Key Features
- Browserlist-driven prefix selection
- Matches caniuse compatibility data
- Strips outdated prefixes automatically
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
API reference evidence
Fetched from official sources on 2026-11-08T18:41:00+08:00 via WebFetch https://cdn.jsdelivr.net/gh/postcss/autoprefixer@latest/README.md;WebFetch https://cdn.jsdelivr.net/gh/postcss/autoprefixer@latest/lib/autoprefixer.d.ts.
autoprefixer→ signature from https://cdn.jsdelivr.net/gh/postcss/autoprefixer@latest/lib/autoprefixer.d.ts; official text: “declare function autoprefixer( options?: autoprefixer.Options ): Plugin & autoprefixer.ExportedAPI”
FAQ
- Which browsers are targeted by default?
- The browserslist defaults, which is a reasonable modern baseline. Override with the overrideBrowserslist option or a browserslist key in package.json.
- Does it remove old prefixes?
- Yes. Autoprefixer adds missing prefixes and removes ones no longer needed for the target set, keeping output tidy.
- Is Autoprefixer still useful?
- Less than before, but it still handles features not fully standardized and lets you target a specific browser matrix without hand-writing prefixes.
Report a problem with this API docOpens a pre-filled issue on GitHub.