I am trying to run css tailwind on my device and it works. But it shows me every time I create a tailwind CSS file.
[deprecation] Running tailwindcss without -i, please provide an input file.
I do not understand why?
I am trying to run css tailwind on my device and it works. But it shows me every time I create a tailwind CSS file.
[deprecation] Running tailwindcss without -i, please provide an input file.
I do not understand why?
Accoridng to the latest Tailwind docs
The 'build' command has been replaced with '-i' as in this code.
"build-css": "npx tailwindcss-cli -i src/style.css -o style.css"
I tried it and it worked for me
From tailwindcss docs https://tailwindcss.com/docs/installation#using-a-custom-css-file
/* ./src/tailwind.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.btn {
@apply px-4 py-2 bg-blue-600 text-white rounded;
}
}
/* terminal */
npx tailwindcss -i ./src/tailwind.css -o ./dist/tailwind.css