summaryrefslogtreecommitdiff
path: root/node_modules/postcss-preset-env/README.md
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-05-14 14:05:49 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-05-14 14:05:49 +0800
commit06823fbf1c2e763a5bf76c3990ca98fbbcd98691 (patch)
tree4280bece3888d12a022093bf1a9cd1b049393602 /node_modules/postcss-preset-env/README.md
parent1368909b3cd552dbb0d12d5863c597f5be46177d (diff)
updated node_modules
Diffstat (limited to 'node_modules/postcss-preset-env/README.md')
-rw-r--r--node_modules/postcss-preset-env/README.md25
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.