/vue3-vite-template

Vue 3, Vite, Pinia, Tailwind

Primary LanguageTypeScript

Setup

  • Required Node 16 or higher
  • Visual Studio Code is recommended
  • Make sure to install the suggested extensions, then:
# install required packages, register git hooks and generate auto-import types
pnpm install

Commands

# serve with hot reload at localhost:5173
pnpm dev

# build for production env
pnpm build

# build for dev env
pnpm build:dev

# build for staging env
pnpm build:sta

# launch preview server at localhost:4173
pnpm preview

# view visualized bundle outputs
pnpm vis:bundle

# view visualized Tailwind CSS configuration
pnpm vis:tailwind

# code lint and format check
pnpm check:code

# code lint and format fix (modified files)
pnpm fix:code

What included

How-tos