“Tailwind Vite” Respostas de código

Tailwind Vite

npm install -D tailwindcss@latest postcss@latest autoprefixer@latest

npx tailwindcss init -p

# add ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'] to purge in tailwind.config.js

echo -e "@tailwind base; \n@tailwind components; \n@tailwind utilities;" >> src/index.css

# add index.css file in src/main.js
# import './index.css'
Envious Emu

Tailwind Vite

@tailwind base;
@tailwind components;
@tailwind utilities;
Unsightly Unicorn

Tailwind Vite

module.exports = {
  content: [
    "./index.html",
    "./src/**/*.{vue,js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
Yellowed Yak

Respostas semelhantes a “Tailwind Vite”

Perguntas semelhantes a “Tailwind Vite”

Procure respostas de código populares por idioma

Procurar outros idiomas de código