vuejs / vue-requests

Need a Vue.js module or looking for ideas?
MIT License
69 stars 6 forks source link

vue-hot-loader #18

Open egoist opened 8 years ago

egoist commented 8 years ago

In 2.0, since we don't have to use <template> in a .vue component, and <style> is also optional, so why not make a vue-hot-loader for .js vue component with hot-reloading support?

LinusBorg commented 8 years ago

"ordinary" HMR would suffice for this ... the Example 3 on this page: https://webpack.github.io/docs/hot-module-replacement.html

skyrpex commented 8 years ago

Is there a way to automate that? Looks like there'll be too much boilerplate code for every single module...

skyrpex commented 8 years ago

I made this webpack loader for JSX Vue files: https://github.com/skyrpex/vue-jsx-loader