Unverified Commit 9ff29f71 authored by Jefferson Bledsoe's avatar Jefferson Bledsoe Committed by GitHub

Docs: Add postcss-preset-env to the warning when customising the PostCSS configuration (#13695)

The [docs for customising the PostCSS config](https://nextjs.org/docs/advanced-features/customizing-postcss-config) warn the user they will need to manually install any dependencies that Next.JS will implicitly use if the config is not overridden. `postcss-preset-env` is missing from the install command.
parent 08e7fa16
...@@ -57,7 +57,7 @@ You can learn more about [Next.js' CSS Module support here](/docs/basic-features ...@@ -57,7 +57,7 @@ You can learn more about [Next.js' CSS Module support here](/docs/basic-features
> **Warning**: When you define a custom PostCSS configuration file, Next.js **completely disables** the [default behavior](#default-behavior). > **Warning**: When you define a custom PostCSS configuration file, Next.js **completely disables** the [default behavior](#default-behavior).
> Be sure to manually configure all the features you need compiled, including [Autoprefixer](https://github.com/postcss/autoprefixer). > Be sure to manually configure all the features you need compiled, including [Autoprefixer](https://github.com/postcss/autoprefixer).
> You also need to install any plugins included in your custom configuration manually, i.e. `npm install postcss-flexbugs-fixes`. > You also need to install any plugins included in your custom configuration manually, i.e. `npm install postcss-flexbugs-fixes postcss-preset-env`.
To customize the PostCSS configuration, create a `postcss.config.json` file in the root of your project. To customize the PostCSS configuration, create a `postcss.config.json` file in the root of your project.
......
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