tailwindcss-patch
Advanced tools
Comparing version 0.0.1 to 1.0.0
{ | ||
"name": "tailwindcss-patch", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"description": "patch tailwindcss for exposing context", | ||
@@ -39,4 +39,9 @@ "main": "dist/index.js", | ||
"@babel/types": "^7.21.4", | ||
"semver": "^7.3.8" | ||
"semver": "^7.4.0" | ||
}, | ||
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/sonofmagic/tailwindcss-mangle.git" | ||
}, | ||
"scripts": { | ||
@@ -47,3 +52,3 @@ "dev": "cross-env NODE_ENV=development rollup -cw", | ||
"build:tsc": "tsc -p tsconfig.json", | ||
"test": "jest", | ||
"test": "npm run patch && jest", | ||
"postinstall": "echo postinstall", | ||
@@ -50,0 +55,0 @@ "preinstall": "npx only-allow pnpm", |
@@ -25,6 +25,6 @@ # tailwindcss-patch | ||
{ | ||
/* ... */ | ||
"scripts": { | ||
"prepare": "tw-patch" | ||
} | ||
/* ... */ | ||
"scripts": { | ||
"prepare": "tw-patch" | ||
} | ||
} | ||
@@ -36,7 +36,15 @@ ``` | ||
```js | ||
import { getContexts , getClassCacheSet } from 'tailwindcss-patch' | ||
import { getContexts, getClassCacheSet } from 'tailwindcss-patch' | ||
// get all contexts at runtime | ||
getContexts() | ||
getContexts() | ||
// get all class generated by tailwindcss utilities | ||
getClassCacheSet() | ||
``` | ||
## Notice | ||
`getContexts`,`getClassCacheSet` should be invoked after `postcss-loader`'s activation. | ||
which means you may not get tailwindcss contexts at build start time. | ||
you may call them at `generateBundle` lifetime hook in `vite/webpack plugin`. |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
20715
0
49
8
0
Updatedsemver@^7.4.0