Skip to content

Commit

Permalink
Use autoprefixer instead of postcss-preset-env (#21215)
Browse files Browse the repository at this point in the history
I realized while looking over this that the `autoprefixer` plugin isn't being used by postcss because it's not included in the `postcss.config.js`. Additionally, since `postcss-preset-env` doesn't support PostCSS 8 yet, and it includes PostCSS 7 as a dependency, I've removed that package. 

There is an open issue to add PostCSS 8 support to `postcss-preset-env` [here](csstools/postcss-preset-env#191). @kripod's comments on my other PR #20956 are what prompted me to check this out. 

On a side note, it looks like all the CMS examples use Tailwind CSS v1 still, so that's something someone (possibly myself) could tackle later.
  • Loading branch information
giraffesyo committed Jan 22, 2021
1 parent 7602cfa commit ded6e24
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/blog-starter-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@types/react-dom": "^16.9.8",
"autoprefixer": "^10.2.1",
"postcss": "^8.2.4",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^2.0.2"
},
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter-typescript/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
plugins: ['tailwindcss', 'postcss-preset-env'],
plugins: ['tailwindcss', 'autoprefixer'],
}
1 change: 0 additions & 1 deletion examples/blog-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"devDependencies": {
"autoprefixer": "^10.2.1",
"postcss": "^8.2.4",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^2.0.2"
},
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
plugins: ['tailwindcss', 'postcss-preset-env'],
plugins: ['tailwindcss', 'autoprefixer'],
}

0 comments on commit ded6e24

Please sign in to comment.