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.
Files changed (2) hide show
  1. package/README.md +15 -0
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-pseudo-where-fallback",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "PostCSS plugin to provide fallbacks for :where() pseudo-class",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",