postcss-pseudo-where-fallback 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,21 @@ export default {
|
|
|
29
29
|
|
|
30
30
|
**Note:** This plugin currently does not accept any options. Simply use it without arguments: `postcssPluginPseudoWhereFallback()`.
|
|
31
31
|
|
|
32
|
+
### With Object Syntax (Auto-loading)
|
|
33
|
+
|
|
34
|
+
PostCSS can automatically load the plugin by its package name when using object syntax:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
// postcss.config.js
|
|
38
|
+
export default {
|
|
39
|
+
plugins: {
|
|
40
|
+
'postcss-pseudo-where-fallback': {},
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This syntax is commonly used with tools like Vite and automatically resolves the plugin from `node_modules`.
|
|
46
|
+
|
|
32
47
|
### With PostCSS CLI
|
|
33
48
|
|
|
34
49
|
```js
|