![]() The extension provides syntax highlighting, TypeScript support, and intellisense for template expressions and component props. The recommended IDE setup is VSCode + the Vue Language Features (Volar) extension. If you are looking for a lighter-weight alternative for no-build-step usage, check out petite-vue. If, for some reason, you need in-browser template compilation even with a build step, you can do so by configuring the build tool to alias vue to vue/dist/ instead. Our default tooling setups use the runtime-only build since all templates in SFCs are pre-compiled. ![]() ![]() However, they will increase the payload by ~14kb. runtime are full builds: they include the compiler and support compiling templates directly in the browser. When using these builds, all templates must be pre-compiled via a build step.īuild files that do not include. To reduce client bundle size, Vue provides different "builds" optimized for different use cases.īuild files that start with vue.runtime.* are runtime-only builds: they do not include the compiler. On the other hand, the compiler would be unnecessary if we pre-compile the templates with a build step. In such cases, Vue needs to ship the template compiler to the browser in order to perform on-the-fly template compilation. When using Vue without a build step, component templates are written either directly in the page's HTML or as inlined JavaScript strings. Note on In-Browser Template Compilation
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |