Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I started playing with this recently and so far I'm loving it. Here's a Vue.js component example I wrote that interacts (CRUD operations) with a Feathers message service over websockets: https://gist.github.com/niallobrien/7eb51d17c977c46babb8


Just wondering, how are you using ES2015 imports in the browser? Does Feathers come with a built-in module loader parser, or is this a feature of using Vue, or are you doing some other magic?


Feathers doesn't assume much on the client. You can use a module loader or the bundled Feathers client which works right out of the box. To be able to use ES imports in the browser I personally use http://stealjs.com


Yup and I use Webpack. The beauty is you get to take your pick. The downer is it's not set up for you. Tradeoffs for now...


Vue.js has a scaffolding tool called Vue-CLI which makes it super simple to get started as it has all of this stuff setup for you.


The .vue files are compiled with webpack using vue-loader (and Babel).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: