I'm trying to use TailwindCSS
and followed the installation process like below. But what I get is a tailwind.css
file with only 369 lines which seems less than others' tailwind result files (and makes me unable to use tailwind styles). Are there any missing points?
My Process
- CRA-typescript -> install packages, didn't edit anything inside
tailwindcss.config.js
npm install -D tailwindcss postcss autoprefixer postcss-cli
npx tailwindcss init
- postcss.config.js
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
]
}
- changed
index.css
like this
@tailwind base;
@tailwind components;
@tailwind utilities;
- create script and executed
"scripts": {
//...
"build:styles": "postcss src/index.css -o src/tailwind.css",
}
Any insights appreciated. Thank you.