“Tailwind Vite” Kode Jawaban

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

Jawaban yang mirip dengan “Tailwind Vite”

Pertanyaan yang mirip dengan “Tailwind Vite”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya