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:
parent
a3979fd1ac
commit
de907f44ce
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue