We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm create vue@latest
创建 .npmrc 更改 npm 源加速包的安装
.npmrc
yarn install
yarn dev
yarn add -D tailwindcss autoprefixer
npx tailwindcss init -p
Note: 如果使用 shadcn-vue 则后续步骤可省略
shadcn-vue
file: tailwind.config.js
content: [ "./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}", ],
file: assets/index.css
@tailwind base; @tailwind components; @tailwind utilities;
npx shadcn-vue@latest init
Note: 如果出现 node:internal/modules/esm/resolve:207 错误,则执行以下命令
node:internal/modules/esm/resolve:207
npm i shadcn-vue@latest --no-package-lock
npx shadcn-vue@latest add
import { Button } from '@/components/ui/button'
file: .vscode/extensions.json
bradlc.vscode-tailwindcss
安装依赖
yarn add -D prettier-plugin-tailwindcss
添加配置
file: .prettierrc.json
"plugins": ["prettier-plugin-tailwindcss"]
Note: 如果无效注意检查系统级的格式化设置
The text was updated successfully, but these errors were encountered:
No branches or pull requests
初始化 Vue 项目
创建项目
创建
.npmrc
更改 npm 源加速包的安装添加 TailwindCSS
Note: 如果使用
shadcn-vue
则后续步骤可省略file: tailwind.config.js
file: assets/index.css
添加 shadcn-vue
Note: 如果出现
node:internal/modules/esm/resolve:207
错误,则执行以下命令优化开发环境
file: .vscode/extensions.json
安装依赖
添加配置
file: .prettierrc.json
Note: 如果无效注意检查系统级的格式化设置
The text was updated successfully, but these errors were encountered: