File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
packages/unplugin-tailwindcss-mangle Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ export default defineNuxtConfig({
8
8
autoprefixer : { }
9
9
}
10
10
} ,
11
+ // https://github.com/nuxt/nuxt/issues/20428
12
+ experimental : {
13
+ inlineSSRStyles : false
14
+ } ,
11
15
modules : [
12
16
[
13
17
nuxtPlugin ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ It is recommended to read the documentation of [tailwindcss-patch](https://githu
16
16
- [ 5. Register this plugin] ( #5-register-this-plugin )
17
17
- [ vite] ( #vite )
18
18
- [ webpack] ( #webpack )
19
+ - [ Nuxt 3] ( #nuxt-3 )
19
20
- [ Options] ( #options )
20
21
- [ Notice] ( #notice )
21
22
- [ Migration form v1 to v2] ( #migration-form-v1-to-v2 )
@@ -111,6 +112,29 @@ module.exports = defineConfig({
111
112
112
113
```
113
114
115
+ #### Nuxt 3
116
+
117
+ ``` ts
118
+ import nuxtPlugin from ' unplugin-tailwindcss-mangle/nuxt'
119
+ export default defineNuxtConfig ({
120
+ // ...
121
+ // https://github.com/nuxt/nuxt/issues/20428
122
+ // you must set this option to false to enable vite extract css
123
+ experimental: {
124
+ inlineSSRStyles: false
125
+ },
126
+ modules: [
127
+ [
128
+ nuxtPlugin ,
129
+ {
130
+ // options
131
+ }
132
+ ]
133
+ ]
134
+ })
135
+
136
+ ```
137
+
114
138
## Options
115
139
116
140
[ types.ts] ( './src/types.ts' )
You can’t perform that action at this time.
0 commit comments