Skip to content

chore: remove redundant autoprefixer PostCSS plugin#211

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-autoprefixer-20260624
Open

chore: remove redundant autoprefixer PostCSS plugin#211
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/remove-autoprefixer-20260624

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes the redundant autoprefixer PostCSS plugin from postcss.config.js and the autoprefixer devDependency from package.json.

Why

With Tailwind CSS v4, the @tailwindcss/postcss plugin uses Lightning CSS internally, which handles vendor prefixing automatically. The separate autoprefixer PostCSS plugin was left over from the Tailwind v3 → v4 migration and is now redundant:

Changes

  • postcss.config.js: Removed the autoprefixer import and plugin entry
  • package.json: Removed autoprefixer from devDependencies
  • package-lock.json: Regenerated (autoprefixer removed from lockfile)

Test Plan

  • All 52 existing tests pass
  • Production build succeeds
  • CSS output is unaffected (prefixing is handled by Lightning CSS within @tailwindcss/postcss)
  • CSS bundle size slightly reduced (136.35 kB → 134.10 kB)

With Tailwind CSS v4, the @tailwindcss/postcss plugin uses Lightning CSS
which handles vendor prefixing internally. The separate autoprefixer
PostCSS plugin is now redundant and was only kept as dead config after
the Tailwind v3->v4 migration.

PR #185 removed the browserslist config that autoprefixer depended on
but this autoprefixer cleanup was deferred.

Removing it:
- Eliminates an unnecessary PostCSS processing pass on every build
- Removes the unused autoprefixer devDependency
- Has no effect on the built CSS (Lightning CSS already handles prefixes)
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 24, 2026 12:04pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant