From add4183d0a9acebd4ba7e28674a4597281c55828 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Fri, 23 Aug 2024 15:02:11 +0100 Subject: [PATCH] fix(react): tailwind with rspack should work on generation #27028 (#27619) ## Current Behavior React, Tailwind and Rspack is not working out of the box ## Expected Behavior It works out of the box. In tandem with nrwl/nx-labs#415 ## Related Issue(s) Fixes #27028 --- .../files/style-tailwind/src/app/__fileName__.tsx__tmpl__ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ b/packages/react/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ index 671b49bfca17e0..20f6b9270e6228 100644 --- a/packages/react/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ +++ b/packages/react/src/generators/application/files/style-tailwind/src/app/__fileName__.tsx__tmpl__ @@ -2,6 +2,8 @@ import { Component } from 'react'; <% } if (!minimal) { %> import NxWelcome from "./nx-welcome"; +<% } if (bundler === "rspack") { %> +import '../styles.css'; <% } %> <% if (classComponent) { %>