Skip to content

Commit

Permalink
ensure that we fallback to the first argument without any flags (#5464)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Sep 10, 2021
1 parent e36d242 commit 30badad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli.js
Expand Up @@ -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)))) {
Expand Down

0 comments on commit 30badad

Please sign in to comment.