We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3a97c commit e0de7f0Copy full SHA for e0de7f0
src/index.ts
@@ -108,6 +108,11 @@ export const makeSdTailwindConfig = ({
108
throw new Error('formatType must be "js" or "cjs"')
109
}
110
111
+ const destination =
112
+ type !== 'all'
113
+ ? `${type}.tailwind.${formatType}`
114
+ : `tailwind.config.${formatType}`
115
+
116
return {
117
preprocessors,
118
source: getConfigValue(source, ['tokens/**/*.json']),
@@ -135,10 +140,7 @@ export const makeSdTailwindConfig = ({
135
140
buildPath: getConfigValue(buildPath, 'build/web/'),
136
141
files: [
137
142
{
138
- destination:
139
- type !== 'all'
- ? `${type}.tailwind.js`
- : `tailwind.config.${formatType}`,
143
+ destination,
144
format: 'tailwindFormat'
145
146
]
0 commit comments