File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 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>({
137137 nuxt . options . postcss || /* nuxt 3 */ /* @ts -ignore */
138138 nuxt . options . build . postcss . postcssOptions || /* older nuxt3 */ /* @ts -ignore */
139139 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+ }
144146
145147 // install postcss8 module on nuxt < 2.16
146148 if ( parseFloat ( getNuxtVersion ( ) ) < 2.16 ) {
You can’t perform that action at this time.
0 commit comments