⚡ Opinionated Vite Starter Template. Inspired by Vitesse
An opinionated Vite Starter Template
Inspired by Vitesse
🔥 This repo consists 3 kinds of templates corresponding to each branch:
master
(demo) - regular SPA
ssr--fastify
(demo) - SSR with Fastify + deploy on Heroku
ssr--netlify-function
(demo) - SSR with Netlify platforms (static hosting + functions)Vue 3 eco-system
Vue 3 extensions
🎨 TailwindCSS - utility-first CSS framework for rapidly building custom user interfaces
🛡️ TypeScript support
☁️️ Easily deploy on Netlify without manual server setup
💪 Good practices from official libs/plugins/repos
👍 Always update to latest version of dependencies
unplugin-vue-components
Note: Only enable for auto-importing Iconify icons via
unplugin-icons
. Regular components should be explicitly imported for better IDE support.
unplugin-icons
vite-plugin-vue-i18n
vite-plugin-md
Create a repo from this template on GitHub.
If you prefer to do it manually with a cleaner git history
npx degit cuongvuong-phoenix/vite-cvp my-vite-cvp-app
cd my-vite-cvp-app
pnpm install
When you use this template, try following this checklist to update your info properly:
name
, license
, version
fields in package.json
LICENSE
filepublic
folder.github
folder which contains GitHub related contentREADME
and... enjoy :)
Just run
pnpm dev
and follow dev-sever logs.
To build for production, run
pnpm build
and you will see the generated files in dist
that ready to be served.
You can preview your production build by running:
pnpm serve
Create your site at Netlify, connect to your repo & hit OK
, your app will be live in a minute.
Some configs in Netlify UI will be overrided by
netlify.toml
file. Check all configs avaiable for more details.
I have created several Vite apps recently. Setting the configs up is kinda the bottleneck for me to make the ideas simply come true within a very short time.
So I made this starter template for myself to create apps more easily, along with some good practices that I have learned from making those apps. It's strongly opinionated, but feel free to tweak it or even maintains your own forks.