Unverified Commit ded6e24b authored by Michael McQuade's avatar Michael McQuade Committed by GitHub

Use autoprefixer instead of postcss-preset-env (#21215)

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](https://github.com/csstools/postcss-preset-env/issues/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.
parent 7602cfad
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
"@types/react-dom": "^16.9.8", "@types/react-dom": "^16.9.8",
"autoprefixer": "^10.2.1", "autoprefixer": "^10.2.1",
"postcss": "^8.2.4", "postcss": "^8.2.4",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^2.0.2" "tailwindcss": "^2.0.2"
}, },
"license": "MIT" "license": "MIT"
......
module.exports = { module.exports = {
plugins: ['tailwindcss', 'postcss-preset-env'], plugins: ['tailwindcss', 'autoprefixer'],
} }
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.2.1", "autoprefixer": "^10.2.1",
"postcss": "^8.2.4", "postcss": "^8.2.4",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^2.0.2" "tailwindcss": "^2.0.2"
}, },
"license": "MIT" "license": "MIT"
......
module.exports = { module.exports = {
plugins: ['tailwindcss', 'postcss-preset-env'], plugins: ['tailwindcss', 'autoprefixer'],
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment