You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.nuxt.hook('tailwindcss:config', function (tailwindConfig) {
142
-
tailwindConfig.plugins.push(tailwindTypography)
143
-
})
144
-
}
133
+
exportdefaultdefineNuxtModule({
134
+
meta: {
135
+
name: 'nuxt-tailwind-typo'
136
+
},
137
+
setup (options, nuxt) {
138
+
nuxt.hook('tailwindcss:config', function (tailwindConfig) {
139
+
tailwindConfig.plugins.push(tailwindTypography)
140
+
})
141
+
}
142
+
})
145
143
```
146
144
147
-
::alert{type="info"}
145
+
Learn more about [Nuxt modules](https://nuxt.com/docs/guide/directory-structure/modules).
148
146
147
+
::alert{type="info"}
149
148
This hook can be asynchronous (using `async/await`) and is called after merging the configurations and right before calling the PostCSS Tailwind plugin.
0 commit comments