PRESS F1 > SEARCH add gitignore > TYPE/SELECT node
npm init -y
npm install -D tailwindcss postcss autoprefixer vite
npx tailwindcss init -p
"scripts": {
"start": "vite"
},
@tailwind base;
@tailwind components;
@tailwind utilities;
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["*"], /* Add "*" THIS ONLY */
theme: {
extend: {},
},
plugins: [],
}
....Or Copy and Replace The Full Code in the Tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["*"],
theme: {
extend: {},
},
plugins: [],
}
ADD into the
tag of index.html<link rel="stylesheet" href="style.css">
npm run start
npx tailwindcss init configDefault --full
...Or Set [NAME] For as anything you want.
npx tailwindcss init [NAME] --full
[In the package.json]
"scripts": {
"start": "vite",
"build": "vite build" /* ADD THIS */
},
....Or Copy and Add This [In the package.json]
"build": "vite build"