Skip to content

Commit

Permalink
Update remaining Tailwind globs
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Jul 26, 2024
1 parent cb42b0d commit 90e048d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 28 deletions.
5 changes: 1 addition & 4 deletions docs/styling/tailwind.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ Now we can tell it which files to generate classes from:
import type { Config } from "tailwindcss";

export default {
content: [
"./app/**/*.{js,jsx,ts,tsx}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
Expand Down
5 changes: 1 addition & 4 deletions integration/hmr-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ let files = {
"tailwind.config.js": js`
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./app/**/*.{ts,tsx,jsx,js}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
Expand Down
5 changes: 1 addition & 4 deletions integration/postcss-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ test.describe("PostCSS enabled", () => {
`,
"tailwind.config.js": js`
export default {
content: [
"./app/**/*.{ts,tsx,jsx,js}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
spacing: {
'test': ${JSON.stringify(TEST_PADDING_VALUE)}
Expand Down
15 changes: 3 additions & 12 deletions integration/tailwind-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ function runTests(ext: typeof extensions[number]) {
let tailwindConfig = ["mjs", "ts", "js"].includes(ext)
? js`
export default {
content: [
"./app/**/*.{ts,tsx,jsx,js}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
spacing: {
'test': ${JSON.stringify(TEST_PADDING_VALUE)}
Expand All @@ -36,10 +33,7 @@ function runTests(ext: typeof extensions[number]) {
`
: js`
module.exports = {
content: [
"./app/**/*.{ts,tsx,jsx,js}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
spacing: {
'test': ${JSON.stringify(TEST_PADDING_VALUE)}
Expand Down Expand Up @@ -370,10 +364,7 @@ test.describe("Tailwind disabled", () => {
files: {
"tailwind.config.js": js`
module.exports = {
content: [
"./app/**/*.{ts,tsx,jsx,js}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
spacing: {
'test': ${JSON.stringify(TEST_PADDING_VALUE)}
Expand Down
5 changes: 1 addition & 4 deletions scripts/playground/template/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{ts,tsx,jsx,js}",
"./app/**/.client/**/*.{js,jsx,ts,tsx}",
],
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
Expand Down

0 comments on commit 90e048d

Please sign in to comment.