postcss-cva
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "postcss-cva", | ||
"description": "generate cva functions by css comment", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "cva", |
@@ -52,2 +52,24 @@ # postcss-cva | ||
### Install | ||
```bash | ||
npm i -D postcss-cva | ||
yarn add -D postcss-cva | ||
pnpm add -D postcss-cva | ||
``` | ||
### postcss.config.[c]js | ||
```js | ||
module.exports = { | ||
plugins: { | ||
// options | ||
'postcss-cva': {}, | ||
// 'postcss-cva': { | ||
// | ||
// }, | ||
} | ||
} | ||
``` | ||
For example, in this plugin | ||
@@ -58,5 +80,5 @@ | ||
> The same `query` will be merged with `params` together | ||
> | ||
> Note ⚠ ️: If you use `scss`, you can use the `//` below for comment, otherwise please use `/* */` | ||
<!-- > Note ⚠ ️: If you use `scss`, you can use the `//` below for comment, otherwise please use `/* */` --> | ||
```css | ||
@@ -183,4 +205,19 @@ /* @meta path="button" */ | ||
### remove | ||
Type: `boolean` | ||
Default: `true` | ||
remove all `@xx` comment | ||
### include / exclude | ||
Type: `String | RegExp | Array[...String|RegExp]` | ||
A valid picomatch pattern, or array of patterns. If options.include is omitted or has zero length, filter will return true by default. Otherwise, an ID must match one or more of the picomatch patterns, and must not match any of the options.exclude patterns. | ||
Note that picomatch patterns are very similar to minimatch patterns, and in most use cases, they are interchangeable. If you have more specific pattern matching needs, you can view this comparison table to learn more about where the libraries differ. | ||
## License | ||
[MIT](../../LICENSE) License © 2023-PRESENT [sonofmagic](https://github.com/sonofmagic) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
47627
221
0