Skip to content

Commit a01f5f7

Browse files
committed
Warn when using outdated config options
1 parent 69aa6e8 commit a01f5f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,18 @@ function getEntryPoint(options: ParserOptions, baseDir: string): string | null {
335335
}
336336

337337
if (options.tailwindEntryPoint) {
338+
console.warn(
339+
'Use the `tailwindStylesheet` option for v4 projects instead of `tailwindEntryPoint`.',
340+
)
341+
338342
return path.resolve(baseDir, options.tailwindEntryPoint)
339343
}
340344

341345
if (options.tailwindConfig && options.tailwindConfig.endsWith('.css')) {
346+
console.warn(
347+
'Use the `tailwindStylesheet` option for v4 projects instead of `tailwindConfig`.',
348+
)
349+
342350
return path.resolve(baseDir, options.tailwindConfig)
343351
}
344352

0 commit comments

Comments
 (0)