Skip to content

Commit 378220d

Browse files
Rename to @source
1 parent 245806c commit 378220d

File tree

11 files changed

+7
-7
lines changed

11 files changed

+7
-7
lines changed

packages/tailwindcss-language-server/src/project-locator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ testFixture('v4/auto-content', [
142142
},
143143
])
144144

145-
testFixture('v4/custom-content', [
145+
testFixture('v4/custom-source', [
146146
//
147147
{
148148
config: 'admin/app.css',

packages/tailwindcss-language-server/src/util/v4/design-system.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,20 @@ export async function loadDesignSystem(
7878
}
7979

8080
export async function loadConfig(filepath: string, css: string): Promise<string[]> {
81-
let contentRules: string[] = []
81+
let sourceRules: string[] = []
8282
await postcss([
8383
{
8484
postcssPlugin: 'extract-at-rules',
8585
AtRule: {
86-
content({ params }: AtRule) {
86+
source({ params }: AtRule) {
8787
if (params[0] !== '"' && params[0] !== "'") {
8888
return
8989
}
90-
contentRules.push(params.slice(1, -1))
90+
sourceRules.push(params.slice(1, -1))
9191
},
9292
},
9393
},
9494
]).process(css, { from: filepath })
9595

96-
return contentRules
96+
return sourceRules
9797
}

packages/tailwindcss-language-server/tests/fixtures/v4/custom-content/package-lock.json renamed to packages/tailwindcss-language-server/tests/fixtures/v4/custom-source/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@import 'tailwindcss';
2-
@content './*.bin';
2+
@source './*.bin';

0 commit comments

Comments
 (0)