Vite
Vuero uses Vite, which is a web development and build tool that supports:
- a fast development environment with hot reload (using
native javascript modules) - building an optimized version for production (using
rollup) - native support for Typescript and SCSS
ts
import { defineConfig } from 'vite'
export default defineConfig({
// vite options
})Useful links:
Base plugins
| Plugin | Usage |
|---|---|
| @vitejs/plugin-vue | Inject vue library and allow SFC files to work (*.vue) |
| vite-plugin-vue-devtools | Inspect your app's DOM tree and enhance the Vue developer experience since v3.0.0 |
| devtools-next | Next generation Vue Devtools since v3.1.0 |
| unplugin-vue-router | Generate routes based on file system, with typed routes since v3.0.0 |
| @unhead/addons/vite | Optimize Unhead usage |
| unplugin-auto-import | Auto loading modules on-demand since v3.0.0 |
| unplugin-vue-components | Auto loading vue components on-demand |
| rollup-plugin-purgecss | Purge CSS rules that are not used in the bundle |
Electron specific plugins
| Plugin | Usage |
|---|---|
| electron-vite | Next Generation Electron Build Tooling since v3.1.0 |
Demo specific plugins
| Plugin | Usage |
|---|---|
| @intlify/unplugin-vue-i18n | Does i18n resources pre-compilation / optimizations |
| vite-plugin-pwa | Zero-config PWA for Vite |
| vite-plugin-vuero-doc | Internal Vite plugin that load markdown files as vue components |
| vite-plugin-purge-comments | Internal Vite plugin that remove html comments from vue components |