Skip to content

Commit

Permalink
feat: adopt existed post css plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xiekw2010 committed Jan 5, 2024
1 parent d305369 commit fc5470b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/preset-umi/src/commands/generators/tailwindcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default (api: IApi) => {
});

h.setUmirc('tailwindcss', {});
h.setUmirc('extraPostCSSPlugins', ['tailwindcss']);
const existingPlugins = api.config?.extraPostCSSPlugins || [];
h.setUmirc('extraPostCSSPlugins', ['tailwindcss', ...existingPlugins]);
h.appendInternalPlugin('@umijs/plugins/dist/tailwindcss');
logger.info('Update .umirc.ts');

Expand Down

0 comments on commit fc5470b

Please sign in to comment.