diff --git a/packages/preset-umi/src/commands/generators/tailwindcss.ts b/packages/preset-umi/src/commands/generators/tailwindcss.ts index 943cb62fe270..d15d4501de90 100644 --- a/packages/preset-umi/src/commands/generators/tailwindcss.ts +++ b/packages/preset-umi/src/commands/generators/tailwindcss.ts @@ -29,6 +29,8 @@ export default (api: IApi) => { }); h.setUmirc('tailwindcss', {}); + const existingPlugins = api.config?.extraPostCSSPlugins || []; + h.setUmirc('extraPostCSSPlugins', ['tailwindcss', ...existingPlugins]); h.appendInternalPlugin('@umijs/plugins/dist/tailwindcss'); logger.info('Update .umirc.ts');