Skip to content

Commit 8aeb7c3

Browse files
fix(tailwindcss): add tailwindStylesheet to .prettierrc (#636)
Co-authored-by: CokaKoala <[email protected]>
1 parent eae9848 commit 8aeb7c3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/tangy-friends-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'sv': patch
3+
---
4+
5+
fix(tailwindcss): ensure `tailwindStylesheet` is added to `.prettierrc`, when applicable

packages/addons/tailwindcss/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ export default defineAddon({
149149

150150
if (!plugins.includes(PLUGIN_NAME)) plugins.push(PLUGIN_NAME);
151151

152+
data.tailwindStylesheet ??= './src/app.css';
153+
152154
return generateCode();
153155
});
154156
}

0 commit comments

Comments
 (0)