Don’t error when a config file is missing
This commit is contained in:
parent
005c1be2ed
commit
f97759f808
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue