11-Mar-2022
- npm init -y
- npm i -D tailwindcss
- npx tailwindcss init
- create + linking ==> html + css + js files
- create ==> .vscode/settings.json file &
{
"css.validate": false,
"tailwindCSS.emmetCompletions": true
}
- inside package.json file, write build cmd
"scripts": {
"build": "tailwindcss -i ./src/tailwind.css -o ./assets/css/style.css -w"
}
-
must add
'./**/*.html'
inside tailwind.config.js > content:[ ]- otherwise tailwind don't work properly
-
npm run build