diff options
Diffstat (limited to 'node_modules/postcss-preset-env/README.md')
| -rw-r--r-- | node_modules/postcss-preset-env/README.md | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/node_modules/postcss-preset-env/README.md b/node_modules/postcss-preset-env/README.md index d0a0761d..994807c7 100644 --- a/node_modules/postcss-preset-env/README.md +++ b/node_modules/postcss-preset-env/README.md @@ -27,11 +27,7 @@ const yourConfig = { /* remove autoprefixer if you had it here, it's part of postcss-preset-env */ postcssPresetEnv({ /* pluginOptions */ - features: { - 'nesting-rules': { - noIsPseudoSelector: false, - }, - }, + features: {}, }) ] } @@ -134,9 +130,8 @@ features and supports **all** browsers. [**Try it out in the Playground!**](https://preset-env.cssdb.org/playground/) -⚠️ Please note that some features need a companion library that makes -the feature work. While we try to avoid this requirement, there are instances -in which this isn't possible to polyfill a new behaviour with _just_ CSS. +> [!NOTE] +> Please note that some features need a companion library that makes the feature work. While we try to avoid this requirement, there are instances in which this isn't possible to polyfill a new behaviour with _just_ CSS. [See the list below](#plugins-that-need-client-library). @@ -267,6 +262,20 @@ postcssPresetEnv({ }) ``` +If you want to preserve automatic enabling of features +based on the stage, implementations and or browserslist, +you can pass an array: `['auto', { /* plugin options */ }]`. + +```js +postcssPresetEnv({ + /* use stage 3 features + custom-selectors (preserving the original CSS) */ + stage: 3, + features: { + 'custom-selectors': ['auto', { preserve: true }] + } +}) +``` + Any polyfills not explicitly enabled or disabled through `features` are determined by the [`stage`](#stage) option. |
