Skip to content

Commit 446e6be

Browse files
Rename to @source
1 parent a1c0b5d commit 446e6be

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
@@ -74,20 +74,20 @@ export async function loadDesignSystem(
7474
}
7575

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

92-
return contentRules
92+
return sourceRules
9393
}

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)