0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Add Autoprefixer change to 0.21 migration guide (#1841)

This commit is contained in:
Drew Powers 2021-11-15 17:20:29 -07:00 committed by GitHub
parent a3979fd1ac
commit de907f44ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,5 +186,21 @@ To learn more about Vite plugins, please visit their [plugin guide](https://vite
> In prior releases, these were configured with `snowpackPlugin` or `snowpackPluginOptions`.
## Styling Changes
### Autoprefixer
Autoprefixer is no longer run by default. To enable:
1. Install the latest version (`npm i autoprefixer`)
2. Create a `postcss.config.cjs` file at the root of your project with:
```js
module.exports = {
plugins: {
autoprefixer: {},
},
};
```
[snowpack]: https://www.snowpack.dev
[vite]: https://vitejs.dev