brillout / awesome-vue-refactor

A curated list of awesome things related to Vue.js
38 stars 15 forks source link

cleaned http-vue-loader #7

Closed FranckFreiburger closed 7 years ago

FranckFreiburger commented 7 years ago

http-vue-loader is marked as "readme doesn't say how it works" but http-vue-loader has an "How it works" section : https://github.com/FranckFreiburger/http-vue-loader#how-it-works

brillout commented 7 years ago

Yes and I've read it but I'm still confused of how you actually parse changed .vue files? No node.js environment, no build step. suggests that you parse them on the client? I mean the purpose of your lib is to test changes so it needs to dynamically build.

FranckFreiburger commented 7 years ago

Yes, parsing is done on the client side using "document.implementation.createHTMLDocument / innerHTML" the vue file is parsed each time the page is reloaded

2017-03-13 23:49 GMT+01:00 Romuald Brillout notifications@github.com:

(I've giving this more thought but I still don't get it.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brillout/awesome-vue/issues/7#issuecomment-286267974, or mute the thread https://github.com/notifications/unsubscribe-auth/AYU-0uNe1f17FerX3SKL4AopkCwieUriks5rlcfcgaJpZM4Mb4wd .

brillout commented 7 years ago

How do you compile the template to JS?

FranckFreiburger commented 7 years ago

No need to compile the template, I just use the vue's "async components" feature, then the template is compiled by vue.

2017-03-14 0:05 GMT+01:00 Romuald Brillout notifications@github.com:

How do you compile the template to JS?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brillout/awesome-vue/issues/7#issuecomment-286271372, or mute the thread https://github.com/notifications/unsubscribe-auth/AYU-0vs6KzqUu3_UK7RPX7DbwDtNH8kUks5rlcvPgaJpZM4Mb4wd .

brillout commented 7 years ago

Ok so the Vue.js client script does the compiling. It'd be nice to explicitly mention that.

FranckFreiburger commented 7 years ago

done, in my "How it works" section.

2017-03-14 0:35 GMT+01:00 Romuald Brillout notifications@github.com:

Ok so the Vue.js client script does the compiling. It'd be nice to explicitly mention that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brillout/awesome-vue/issues/7#issuecomment-286276757, or mute the thread https://github.com/notifications/unsubscribe-auth/AYU-0j4GjIsf6vLNPcbARbFUROP11cakks5rldK8gaJpZM4Mb4wd .

brillout commented 7 years ago

make a PR and I'll merge it