From 0f8b6c6b29879737e0c6d4dbf557b9fd45141228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Fri, 9 Aug 2024 23:04:38 +0100 Subject: [PATCH] chore: fix tailwindcss content pattern matching node_modules Ref: https://x.com/adamwathan/status/1821286325259239554 --- apps/storybook/tailwind.config.js | 2 +- apps/website/tailwind.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/storybook/tailwind.config.js b/apps/storybook/tailwind.config.js index 016bacc..2f66085 100644 --- a/apps/storybook/tailwind.config.js +++ b/apps/storybook/tailwind.config.js @@ -2,7 +2,7 @@ import sharedConfig from "@repo/config-tailwind" /** @type {Pick} */ const config = { - content: [".storybook/preview.tsx", "../../packages/**/*.tsx"], + content: [".storybook/preview.tsx", "../../packages/*/src/**/*.tsx"], presets: [sharedConfig], } diff --git a/apps/website/tailwind.config.js b/apps/website/tailwind.config.js index 8fb6dbb..5016b81 100644 --- a/apps/website/tailwind.config.js +++ b/apps/website/tailwind.config.js @@ -2,7 +2,7 @@ import sharedConfig from "@repo/config-tailwind" /** @type {Pick} */ const config = { - content: ["./**/*.tsx", "../../packages/**/*.tsx"], + content: ["./app/**/*.tsx", "../../packages/*/src/**/*.tsx"], presets: [sharedConfig], }