File tree Expand file tree Collapse file tree 9 files changed +323
-353
lines changed
packages/unplugin-tailwindcss-mangle Expand file tree Collapse file tree 9 files changed +323
-353
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ A util for mangle tailwindcss
7
7
- [ tailwindcss-mangle-core] ( #tailwindcss-mangle-core )
8
8
- [ tailwindcss-mangle-shared] ( #tailwindcss-mangle-shared )
9
9
- [ unplugin-tailwindcss-mangle] ( #unplugin-tailwindcss-mangle )
10
+ - [ How to use] ( #how-to-use )
10
11
11
12
## tailwindcss-patch
12
13
@@ -31,3 +32,7 @@ click [tailwindcss-mangle-shared](./packages/shared) for more details.
31
32
` unplugin-tailwindcss-mangle ` is a plugin for ` webpack ` and ` vite ` to ** obfuscate** tailwindcss class.
32
33
33
34
you can enter [ unplugin-tailwindcss-mangle] ( ./packages/unplugin-tailwindcss-mangle ) for usage and more details.
35
+
36
+ ## How to use
37
+
38
+ See [ unplugin-tailwindcss-mangle] ( ./packages/unplugin-tailwindcss-mangle )
Original file line number Diff line number Diff line change 10
10
"prepare" : " tw-patch"
11
11
},
12
12
"dependencies" : {
13
- "@types/node" : " 20.2.5 " ,
14
- "@types/react" : " 18.2.9 " ,
13
+ "@types/node" : " 20.3.0 " ,
14
+ "@types/react" : " 18.2.11 " ,
15
15
"@types/react-dom" : " 18.2.4" ,
16
16
"autoprefixer" : " 10.4.14" ,
17
17
"eslint" : " 8.42.0" ,
18
- "eslint-config-next" : " 13.4.4 " ,
19
- "next" : " 13.4.4 " ,
18
+ "eslint-config-next" : " 13.4.5 " ,
19
+ "next" : " 13.4.5 " ,
20
20
"postcss" : " 8.4.24" ,
21
21
"react" : " 18.2.0" ,
22
22
"react-dom" : " 18.2.0" ,
Original file line number Diff line number Diff line change 10
10
"prepare" : " tw-patch"
11
11
},
12
12
"devDependencies" : {
13
- "@types/node" : " ^20.2.5 " ,
13
+ "@types/node" : " ^20.3.0 " ,
14
14
"autoprefixer" : " ^10.4.14" ,
15
15
"nuxt" : " ^3.5.3" ,
16
16
"postcss" : " ^8.4.24" ,
Original file line number Diff line number Diff line change 19
19
"devDependencies" : {
20
20
"@remix-run/dev" : " ^1.17.0" ,
21
21
"@remix-run/eslint-config" : " ^1.17.0" ,
22
- "@types/react" : " ^18.2.9 " ,
22
+ "@types/react" : " ^18.2.11 " ,
23
23
"@types/react-dom" : " ^18.2.4" ,
24
24
"eslint" : " ^8.42.0" ,
25
25
"tailwindcss" : " ^3.3.2" ,
Original file line number Diff line number Diff line change 14
14
"react-dom" : " ^18.2.0"
15
15
},
16
16
"devDependencies" : {
17
- "@types/react" : " ^18.2.9 " ,
17
+ "@types/react" : " ^18.2.11 " ,
18
18
"@types/react-dom" : " ^18.2.4" ,
19
19
"@vitejs/plugin-react" : " ^4.0.0" ,
20
20
"autoprefixer" : " ^10.4.14" ,
Original file line number Diff line number Diff line change 31
31
"eslint-plugin-promise" : " ^6.1.1" ,
32
32
"eslint-plugin-vue" : " ^9.14.1" ,
33
33
"postcss" : " ^8.4.24" ,
34
- "sass" : " ^1.63.2 " ,
35
- "sass-loader" : " ^13.3.1 " ,
34
+ "sass" : " ^1.63.3 " ,
35
+ "sass-loader" : " ^13.3.2 " ,
36
36
"tailwindcss" : " ^3.3.2" ,
37
37
"tailwindcss-patch" : " workspace:*" ,
38
38
"typescript" : " ~5.1.3" ,
Original file line number Diff line number Diff line change 25
25
"@icebreakers/tsconfig" : " ^0.0.6" ,
26
26
"@tsconfig/recommended" : " ^1.0.2" ,
27
27
"@types/jest" : " ^29.5.2" ,
28
- "@types/node" : " ^20.2.5 " ,
28
+ "@types/node" : " ^20.3.0 " ,
29
29
"bumpp" : " ^9.1.1" ,
30
30
"cross-env" : " ^7.0.3" ,
31
31
"eslint" : " ^8.42.0" ,
32
32
"eslint-plugin-unicorn" : " ^47.0.0" ,
33
33
"jest" : " ^29.5.0" ,
34
34
"only-allow" : " ^1.1.1" ,
35
35
"prettier" : " ^2.8.8" ,
36
- "rollup" : " ^3.24 .0" ,
36
+ "rollup" : " ^3.25 .0" ,
37
37
"tailwindcss-mangle-core" : " workspace:*" ,
38
38
"tailwindcss-mangle-shared" : " workspace:*" ,
39
39
"tailwindcss-patch" : " workspace:*" ,
45
45
"engines" : {
46
46
"node" : " >=14.0.0"
47
47
},
48
- "packageManager" : " pnpm@8.5 .1" ,
48
+ "packageManager" : " pnpm@8.6 .1" ,
49
49
"dependencies" : {
50
50
"vitest" : " ^0.32.0"
51
51
}
Original file line number Diff line number Diff line change @@ -84,16 +84,15 @@ import { webpackPlugin as utwm } from 'unplugin-tailwindcss-mangle'
84
84
const { webpackPlugin: utwm } = require (' unplugin-tailwindcss-mangle' )
85
85
// use this webpack plugin
86
86
// for example next.config.js
87
- /** @type {import('next').NextConfig} */
88
- const nextConfig = {
89
- reactStrictMode: true ,
90
- webpack : (config ) => {
87
+ const { defineConfig } = require (' @vue/cli-service' )
88
+ // vue.config.js
89
+ module .exports = defineConfig ({
90
+ transpileDependencies: true ,
91
+ configureWebpack : (config ) => {
91
92
config .plugins .push (utwm ())
92
- return config
93
93
}
94
- }
94
+ })
95
95
96
- module .exports = nextConfig
97
96
```
98
97
99
98
## Options
You can’t perform that action at this time.
0 commit comments