You can use petite-vue without a build step by loading it from a CDN.
Auto-initialization
To automatically find and initialize all elements with the v-scope attribute, use the init attribute in your script tag:
<script src="https://unpkg.com/petite-vue" defer init></script>
<div v-scope="{ count: 0 }">
{{ count }}
<button @click="count++">inc</button>
</div>
Manual Initialization
If you prefer manual control, remove the init attribute and call createApp().mount() manually. You can use the global build or the ES module build.
Global Build (IIFE):
<script src="https://unpkg.com/petite-vue"></script>
<script>
PetiteVue.createApp().mount()
</script>
ES Module Build:
<script type="module">
import { createApp } from 'https://unpkg.com/petite-vue?module'
createApp().mount()
</script>
<script src="https://unpkg.com/petite-vue" defer init></script>
<!-- anywhere on the page -->
<div v-scope="{ count: 0 }">
{{ count }}
<button @click="count++">inc</button>
</div>