You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KaKi87 27c8a121a0 🎨 Refactor 242c1f4 3 weeks ago
.gitignore 🎉 Initial commit 1 month ago
README.md 🎨 Refactor 242c1f4 3 weeks ago
index.html 🎨 Refactor 242c1f4 3 weeks ago

README.md

template-vue3-cdn

Vue 3 → Vue 2 downgrade instructions

  • Add <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script> before <script type="module">
  • Remove import { createApp } from 'https://unpkg.com/vue@3.2.11/dist/vue.esm-browser.js';
  • Remplace <script type="module"> with <script>
  • Replace const app = createApp with const app = new Vue
  • Replace app.component with Vue.component
  • Replace app.mount('.app') with app.$mount('.app')
  • Replace <body class="app"></body> with <body><div class="app"></div></body>
  • Replace <app-main></app-main> with <div class="app"><app-main></app-main></div> if root component has multiple child components