Overview
The vue-html library is a tool that allows users to use tagged template strings in the Vue.js render function. This eliminates the need for a bundler or transpiler and reduces the size of the application. The library comes with a runtime + template compiler size of 32kB gzipped and a runtime + vue-html size of 23kB gzipped. The downside of using vue-html is the lack of handy sugars like v-model support.
Features
- Tagged template string usage in Vue.js render function
- Reduces app size when used without a bundler or transpiler
- Comes with a runtime + template compiler size of 32kB gzipped or a runtime + vue-html size of 23kB gzipped
- Traditional way of using local/global components is still supported
Installation
To install vue-html, you can use the following CDN versions:
- UMD: https://unpkg.com/vue-html/dist/html.js (exposed as window.HTML)
- ESM: https://unpkg.com/vue-html/dist/html.es.js
Summary
The vue-html library provides a convenient solution for using tagged template strings in the Vue.js render function. It reduces the app size when used without a bundler or transpiler and is easy to install using the provided CDN versions. However, it lacks certain features like v-model support. Overall, vue-html is a useful tool for those looking to optimize their Vue.js applications.