My biggest gripe with vite is that it doesn't use ./src out of the box. vite-base is a configured vanilla javascript vite installation without any frameworks. Perfect for simple projects. Download and start working.
- Vite configured for vanilla Javascript
- Configured with prettier
- (Optional) Configured with TailwindCSS
- Code moved to
./src- Javascript files in
./src/js - Public/asset files in
./src/static - CSS files in
./src/styles
- Javascript files in
- Added
.env.development - Added
.env.production - Asynchronous
vite.config.jsready for modification- Added
isProductioncheck - Added
.envloading based on current mode
- Added
- Download
npm installnpm run dev
Consider uncommenting #.env.development and #.env.production from .gitignore if you are going to tell it all your dirty secrets and passwords 🐸.