From 23ef97e4ce73570bedc372cce910cc59b13b23c1 Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Mon, 30 Oct 2023 11:16:56 -0600 Subject: [PATCH] fix(nextjs): Setup Tailwind should work with nextjs app router (#19934) --- .../setup-tailwind/lib/add-tailwind-style-imports.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react/src/generators/setup-tailwind/lib/add-tailwind-style-imports.ts b/packages/react/src/generators/setup-tailwind/lib/add-tailwind-style-imports.ts index e70f6dc2f8e3f..486fd1a15943d 100644 --- a/packages/react/src/generators/setup-tailwind/lib/add-tailwind-style-imports.ts +++ b/packages/react/src/generators/setup-tailwind/lib/add-tailwind-style-imports.ts @@ -19,6 +19,10 @@ const knownLocations = [ 'pages/styles.css', 'pages/styles.scss', 'pages/styles.less', + + 'app/global.css', + 'app/global.scss', + 'app/global.less', ]; export function addTailwindStyleImports(