1,使用vite创建项目
npm create vite@latest
2,选择脚手架配置
project name: bigscreen
select a framework:> Vue
select a variant: > Javascript
3, 跳转到项目目录 cd bigscreen
4,安装 项目依赖 npm i
5,Install Tailwind CSS with Vite
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p
Configure your template paths 配置 tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
Add the Tailwind directives to your CSS
Add the @tailwind directives for each of Tailwind’s layers to your ./src/index.css file
@tailwind base;
@tailwind components;
@tailwind utilities;
6,运行项

最低0.47元/天 解锁文章

1117

被折叠的 条评论
为什么被折叠?



