mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Apply suggestions from code review
This commit is contained in:
parent
56e36e773b
commit
80559746ef
@ -200,7 +200,7 @@ Please also file an issue if you need to opt out. We plan to remove the legacy r
|
||||
|
||||
Previously, `@storybook/core` would automatically add the `postcss-loader` to your preview. This caused issues for consumers when PostCSS upgraded to v8 and tools, like Autoprefixer and Tailwind, starting requiring the new version. Implictly adding `postcss-loader` will be removed in Storybook 7.0.
|
||||
|
||||
Instead of continuing to include PostCSS inside the core library, it has been moved to [`@storybook/addon-postcss`](https://github.com/storybookjs/addon-postcss). This addon will provide more fine-grained customization and will be upgraded more flexibly to track PostCSS upgrades.
|
||||
Instead of continuing to include PostCSS inside the core library, it has been moved to [`@storybook/addon-postcss`](https://github.com/storybookjs/addon-postcss). This addon provides more fine-grained customization and will be upgraded more flexibly to track PostCSS upgrades.
|
||||
|
||||
If you require PostCSS support, please install `@storybook/addon-postcss` in your project, add it to your list of addons inside `.storybook/main.js`, and configure a `postcss.config.js` file.
|
||||
|
||||
@ -210,7 +210,7 @@ Further information is available at https://github.com/storybookjs/storybook/iss
|
||||
|
||||
When relying on the [implicit PostCSS loader](#deprecated-implicit-postcss-loader), it would also add [autoprefixer v9](https://www.npmjs.com/package/autoprefixer/v/9.8.6) and [postcss-flexbugs-fixes v4](https://www.npmjs.com/package/postcss-flexbugs-fixes/v/4.2.1) plugins to the `postcss-loader` configuration when you didn't have a PostCSS config file (such as `postcss.config.js`) within your project.
|
||||
|
||||
They will no longer be applied when switching to `@storybook/addon-postcss` and the implicit PostCSS features will be remove in Storybook 7.0.
|
||||
They will no longer be applied when switching to `@storybook/addon-postcss` and the implicit PostCSS features will be removed in Storybook 7.0.
|
||||
|
||||
If you depend upon these plugins being applied, install them and create a `postcss.config.js` file within your project that contains:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user