-
📥 APIs auto importing - use Composition API and others directly
-
🤙🏻 Use the new
<script setup>
syntax -
🤙🏻 Reactivity Transform enabled
-
🔆 Dark / Light theme switch with persistance
@use 'vuetify';
.buttonClass {
@extend .text-white, .mx-2;
}
<VBtn class="buttonClass"> ... </VBtn>
import { Vue } from '@U/instanciateVue'
// Init Vue and set new user on auth changes.
auth.onAuthStateChanged(async user => {
Vue(user)
})
const modules = import.meta.globEager('@M/*.js')
export default app => Object.values(modules).map(m => m.install(app))
import { router } from '@M/routes'
export const install = app => {
const pinia = createPinia()
// Router can be used in any pinia store module.
pinia.use(({ store }) => {
store.router = markRaw(router)
})
app.use(pinia)
}
- Vue Macros
- Vue Router
vite-plugin-pages
- file system based routingvite-plugin-vue-layouts
- layouts for pages- Pinia - Intuitive, type safe, light and flexible Store for Vue using the composition api
unplugin-vue-components
- components auto importunplugin-auto-import
- Directly use Vue Composition API and others without importing
-
Use Composition API with
<script setup>
SFC syntax
Yarn install
yarn dev
yarn build