mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Don’t error when a config file is missing
This commit is contained in:
parent
005c1be2ed
commit
f97759f808
@ -63,9 +63,7 @@ function getTailwindConfig(configOrPath) {
|
||||
}
|
||||
|
||||
// It's a plain object, not a path
|
||||
let newConfig = resolveConfig(
|
||||
configOrPath.config === undefined ? configOrPath : configOrPath.config
|
||||
)
|
||||
let newConfig = resolveConfig(configOrPath?.config ?? configOrPath ?? {})
|
||||
|
||||
newConfig = validateConfig(newConfig)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user