2022-02-05 11:38:00 | Blog | Takes 1 min. reading.
Tailwind CSS funciona escanejant tots els vostres fitxers HTML, components JavaScript i qualsevol altra plantilla per trobar noms de classe,
bash
npm install -D tailwindcss postcss autoprefixer
bash
npx tailwindcss init -p
javascript
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./resources/**/*.vue",
// Afegir altres rutes si cal
],
theme: {
extend: {},
},
plugins: [],
}css
@tailwind base; @tailwind components; @tailwind utilities;
bash
npm run dev