unplugin-tailwindcss-mangle 2.0.1 → 2.0.2

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 +2 -2
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  mangle tailwindcss utilities plugin
4
4
 
5
+ It is recommended to read the documentation of [tailwindcss-patch](https://github.com/sonofmagic/tailwindcss-mangle/tree/main/packages/tailwindcss-patch) first, `unplugin-tailwindcss-mangle` depends on this tool.
6
+
5
7
  > Now Support `vite` and `webpack`
6
8
 
7
9
  - [unplugin-tailwindcss-mangle](#unplugin-tailwindcss-mangle)
@@ -16,6 +18,7 @@ mangle tailwindcss utilities plugin
16
18
  - [webpack](#webpack)
17
19
  - [Options](#options)
18
20
  - [Notice](#notice)
21
+ - [Migration form v1 to v2](#migration-form-v1-to-v2)
19
22
 
20
23
  ## Features
21
24
 
@@ -128,3 +131,15 @@ document.body.innerHTML = innerHTML
128
131
  ```
129
132
 
130
133
  so only strings with `-` or `:` will be transformed.
134
+
135
+ ## Migration form v1 to v2
136
+
137
+ ```diff
138
+ // vite
139
+ - import { vitePlugin } from 'unplugin-tailwindcss-mangle'
140
+ + import utwm from 'unplugin-tailwindcss-mangle/vite'
141
+
142
+ // webpack
143
+ - import { webpackPlugin } from 'unplugin-tailwindcss-mangle'
144
+ + import utwm from 'unplugin-tailwindcss-mangle/webpack'
145
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-tailwindcss-mangle",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "mangle tailwindcss utilities class plugin. support vite and webpack!",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -64,7 +64,7 @@
64
64
  "micromatch": "^4.0.5",
65
65
  "unplugin": "^1.4.0",
66
66
  "@tailwindcss-mangle/config": "^1.0.1",
67
- "@tailwindcss-mangle/core": "^2.0.1",
67
+ "@tailwindcss-mangle/core": "^2.0.2",
68
68
  "@tailwindcss-mangle/shared": "^2.0.0"
69
69
  },
70
70
  "publishConfig": {