History: Tiki Vue example with no npm and a remote component: vue-grid-layout
Preview of version: 2
No node, no npm, no building - just some external files and you can have some Vue magic:
Copy to clipboard
<script src="https://unpkg.com/vue@2/dist/vue.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue3-sfc-loader@0.8.4/dist/vue2-sfc-loader.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue-grid-layout@2.4.0/dist/vue-grid-layout.umd.min.js"></script>
`/* --> */, type: '.vue', } } return fetch(url).then(res => res.text()); }, addStyle(textContent) { const style = Object.assign(document.createElement('style'), { textContent }); const ref = document.head.getElementsByTagName('style')[0] || null; document.head.insertBefore(style, ref); }, } const { loadModule } = window['vue2-sfc-loader']; loadModule('/main.vue', options) .then(component => new Vue(component).$mount('#app'))