A Vue3 starter project setup with these following components,
- Vite
- vue-meta-3.0.0-alpha.8
- Router
- Pinia (Vue 3 default)
- Eslint
- Prettier
- Tailwind CSS
- File based routing with vite-plugin-pages. (Like Nuxt file system routing)
- Layout system with vite-plugin-vue-layouts. (Like Nuxt layouts)
- Components auto importing with
unplugin-vue-components
~/
alias for/src
. So we don't have to write something like../../../SomeModule
to import modules.- and some custom setups.
Check out Typescript version here
Check out Nuxt 3 starter template
yarn
yarn dev
In App.vue
change the following,
const siteName = 'Vite App' // add your site name here
You can add layouts in your project if you want. You will find default.vue
and 404.vue
layout examples in this project. For more details, check out vite-plugin-vue-layouts. (Like Nuxt layouts system).
You can add pages to your project. You will find some example pages in the pages
directory (index.vue
, about/[name].vue
, and [...all].vue
). For more details, check out vite-plugin-pages. (Like Nuxt file system routing).
You can add meta information in your pages. Here is an example,
<script setup>
import { useMeta } from 'vue-meta'
useMeta({
title: 'Homepage',
})
...
</script>
- Disable Vetur for the current workspace
- Disable built in
TypeScript and JavaScript Language Features
for the current workspace to enable take-over mode.