From 66975e780bca2d94ce9fc02de81a6a74a7f23e83 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 10 Sep 2021 10:10:38 +0200 Subject: [PATCH] ensure that we fallback to the first argument without any flags --- src/cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.js b/src/cli.js index b3a37cd0662e..39b00e3eb261 100644 --- a/src/cli.js +++ b/src/cli.js @@ -351,6 +351,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)))) {