Repository navigation
chore(deps): remove redundant autoprefixer PostCSS plugin - #165
andrerfneves wants to merge 1 commit into
Conversation
Tailwind CSS v4's @tailwindcss/postcss plugin uses Lightning CSS internally, which handles vendor prefixing automatically. The separate autoprefixer PostCSS plugin and its devDependency are unnecessary. - Remove autoprefixer from postcss.config.js plugins - Remove autoprefixer from package.json devDependencies
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b0085de4c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "@tailwindcss/postcss": "^4.3.0", | ||
| "@vitejs/plugin-react": "^4.3.4", |
There was a problem hiding this comment.
Update the lockfile when dropping autoprefixer
Removing this devDependency from package.json without updating package-lock.json leaves the root lockfile devDependencies entry and node_modules/autoprefixer package record intact. I checked the repo's npm workflow with npm ci --dry-run, and it still plans to install autoprefixer, so clean CI installs continue carrying the dependency this commit is meant to remove; please regenerate and commit the lockfile with the package removed.
Useful? React with 👍 / 👎.
Summary
Tailwind CSS v4's
@tailwindcss/postcssplugin uses Lightning CSS internally, which handles vendor prefixing automatically. The separateautoprefixerPostCSS plugin and its devDependency are unnecessary.Problem
@tailwindcss/postcssalready includes Lightning CSS which adds vendor prefixesautoprefixerPostCSS plugin is redundantChanges
autoprefixerimport and plugin frompostcss.config.jsautoprefixerfrompackage.jsondevDependenciesVerification
npm run buildcompletes successfully