From 402ccbf18217278b664c7c734512f42223bf11b7 Mon Sep 17 00:00:00 2001 From: Hisam Fahri Date: Fri, 5 May 2023 19:51:15 +0700 Subject: [PATCH] fix(react): add `app` directory in the default `tailwind.config.js` (#16656) --- docs/shared/guides/using-tailwind-css-in-react.md | 2 +- .../generators/setup-tailwind/files/tailwind.config.js__tmpl__ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/shared/guides/using-tailwind-css-in-react.md b/docs/shared/guides/using-tailwind-css-in-react.md index 226d33af8c33b..f5f5047e92545 100644 --- a/docs/shared/guides/using-tailwind-css-in-react.md +++ b/docs/shared/guides/using-tailwind-css-in-react.md @@ -85,7 +85,7 @@ module.exports = { content: [ join( __dirname, - '{src,pages,components}/**/*!(*.stories|*.spec).{ts,tsx,html}' + '{src,pages,components,app}/**/*!(*.stories|*.spec).{ts,tsx,html}' ), ...createGlobPatternsForDependencies(__dirname), ], diff --git a/packages/react/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ b/packages/react/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ index e218f5aff514f..e1cf7cee3eaf7 100644 --- a/packages/react/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ +++ b/packages/react/src/generators/setup-tailwind/files/tailwind.config.js__tmpl__ @@ -6,7 +6,7 @@ module.exports = { content: [ join( __dirname, - '{src,pages,components}/**/*!(*.stories|*.spec).{ts,tsx,html}' + '{src,pages,components,app}/**/*!(*.stories|*.spec).{ts,tsx,html}' ), ...createGlobPatternsForDependencies(__dirname), ],