Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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; 
@tailwind components; 
@tailwind utilities;" >> src/index.css

# add index.css file in src/main.js
# import './index.css'
Source by tailwindcss.com #
 
PREVIOUS NEXT
Tagged: #tailwind #vite
ADD COMMENT
Topic
Name
8+5 =