This is another vite template based on the vanilla template with added alpinejs
Test this template in github-pages
Run the following commands
Install dependencies once:
npm install
Start dev server
npm run dev
Build a bundle (generated in the dist folder):
npm run dist
- Follow the steps to create a
vanilla
project https://vitejs.dev/guide/#scaffolding-your-first-vite-project - Follow the steps to install alpinejs as a module https://alpinejs.dev/essentials/installation#as-a-module
- Modify the project to use Alpine instead of vanilla javascript.