3 ms·
Thanks for the pointer. I'm actually a big fan of Vue.js and use it in several product sites/apps. However, if one is just wanting some componentization/isolati
by jordanlev 10y ago
Thanks for the pointer. I'm actually a big fan of Vue.js and use it in several product sites/apps. However, if one is just wanting some componentization/isolation in their CSS and not actually building a javascript app, then it's kind of overkill.
Also, while it does allow you to keep your component code in different files, by the time the browser is using your CSS it's still all in one big "global namespace" (so to speak), so you still need to enforce some discipline on your css class names, even if they're in different files.
(Or perhaps I'm wrong about this and vueify modifies your classes or selectors or something to avoid this?)
- welanes 10y agoSure, this is more for cases where you want to create reusable components. Which, if you work on multiple projects, might be often. Yep, it renames them - https://github.com/vuejs/vueify#scoped-css https://github.com/vuejs/vueify#scoped-css