Hacker News new | past | comments | ask | show | jobs | submit login

that's pretty close to what i'm thinking of, but still has some limitations (from https://vuejs.org/v2/guide/single-file-components.html):

• Global definitions force unique names for every component

• String templates lack syntax highlighting and require ugly slashes for multiline HTML

• No CSS support means that while HTML and JavaScript are modularized into components, CSS is conspicuously left out

• No build step restricts us to HTML and ES5 JavaScript, rather than preprocessors like Pug (formerly Jade) and Babel




You may be misunderstanding (or I’m not understanding your intent). Single-file components were made specifically to overcome those issues, as mentioned on the page you linked.


apologies, i did misread the page i quoted from. it does seem like i need to explore these single-file vue components more.




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

Search: