- Create app using Vite
npm vite create@latest
Follow the prompts:
- Pick vanilla JS
Change into the folder create.
Do npm install
Next do npm run dev
- this will start an development ViteJS instance that will compile your code in the fly.
It will open up automatically in the browser.
If you change some things in main.js
and save the file.
Show the text below in the page by replacing the text that is setting #app
element with the text below.
document.querySelector('#app').innerHTML = "I 💚 Alpine JS!"
The browser will refresh automatically, after you save the file.
Add 2 files - vite.config.js
& deploy.sh