futureaus / servue

Server-side rendering engine that renders vue files into html strings
https://futureaus.github.io/servue
59 stars 3 forks source link

Load vue from cdn instead paste to page code #8

Closed Satont closed 5 years ago

Satont commented 5 years ago

As i see you paste vue.js via to page code. Can you please replace it by ? It will be more readble. Or if you not want load vue from external site, maybe add possible add something like option servue.loadvue: locally/cdn i will be very approdicated :)

AlbertMarashi commented 5 years ago

Vue is actually bundled with the webpack bundle. It's required by webpack. The whole script is inlined because it's easier compared to providing a script route for every page.

I don't see the need for this, as Vue.js is already included in the bundle, and shouldn't be required anywhere else.

AlbertMarashi commented 5 years ago

So to clarify, the vue is imported from the node_modues/vue/dist/build.js folder by webpack