From 9ff29f710de304b67cf7d002c334b7c3e83af93c Mon Sep 17 00:00:00 2001 From: Jefferson Bledsoe Date: Wed, 3 Jun 2020 00:29:34 +0100 Subject: [PATCH] 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. --- docs/advanced-features/customizing-postcss-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-features/customizing-postcss-config.md b/docs/advanced-features/customizing-postcss-config.md index be56de56eb..a7eb35cede 100644 --- a/docs/advanced-features/customizing-postcss-config.md +++ b/docs/advanced-features/customizing-postcss-config.md @@ -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). > 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.