ensure missing -i still works

The deprecation warning is there, but it should keep working though!
This commit is contained in:
Robin Malfait 2021-09-10 10:06:48 +02:00
parent cd15b3e985
commit ab685221af
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -353,6 +353,7 @@ async function build() {
// TODO: Deprecate this in future versions
if (!input && args['_'][1]) {
console.error('[deprecation] Running tailwindcss without -i, please provide an input file.')
input = args['--input'] = args['_'][1]
}
if (input && !fs.existsSync((input = path.resolve(input)))) {