File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,12 @@ export default defineNuxtModule<ModuleOptions>({
137
137
nuxt . options . postcss || /* nuxt 3 */ /* @ts -ignore */
138
138
nuxt . options . build . postcss . postcssOptions || /* older nuxt3 */ /* @ts -ignore */
139
139
nuxt . options . build . postcss as any
140
- postcssOptions . plugins = postcssOptions . plugins || { }
141
- postcssOptions . plugins [ 'tailwindcss/nesting' ] = postcssOptions . plugins [ 'tailwindcss/nesting' ] ?? { }
142
- postcssOptions . plugins [ 'postcss-custom-properties' ] = postcssOptions . plugins [ 'postcss-custom-properties' ] ?? { }
143
- postcssOptions . plugins . tailwindcss = tailwindConfig
140
+ postcssOptions . plugins = {
141
+ ...( postcssOptions . plugins || { } ) ,
142
+ 'tailwindcss/nesting' : postcssOptions . plugins [ 'tailwindcss/nesting' ] ?? { } ,
143
+ 'postcss-custom-properties' : postcssOptions . plugins [ 'postcss-custom-properties' ] ?? { } ,
144
+ tailwindcss : tailwindConfig
145
+ }
144
146
145
147
// install postcss8 module on nuxt < 2.16
146
148
if ( parseFloat ( getNuxtVersion ( ) ) < 2.16 ) {
You can’t perform that action at this time.
0 commit comments