Don’t error when a config file is missing

This commit is contained in:
Jordan Pittman 2023-07-13 11:33:25 -04:00
parent 005c1be2ed
commit f97759f808

View File

@ -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)