News for hackers. Stuff that matters.
Re:How we do Vue at GitLab: one year later by sametmax on Friday November 10, 2017 @04:29PM (#15673214)
God this is horrible. It's ugly. Hard to read. Things are scattered all over the code. And where is my sass ?
Re:How we do Vue at GitLab: one year later by mottomotto on Friday November 10, 2017 @08:02PM (#15674392)
I much prefer putting the styles in a separate {componentName}.scss file, import'ing that into the component and using the Webpack Extract Text Plugin:

https://github.com/webpack-contrib/extract-text-webpack-plug...

I guess now you have two files per component but to me, it's well worth it.

Re:How we do Vue at GitLab: one year later by onenite on Friday November 10, 2017 @10:02PM (#15674765)
You can work with two files per component if you must truly put the styling in another file.

One of the boons of react is that you can create a set of reusable base components that can be built upon throughout your app.

If you can code-split the app, lazy-loading components as needed, and if you can cache all of the static app anyway, why does it matter if the presentation is tied to the logic?

The same can be said for vue.js. :)

The two languages have many merits and they both make their own sacrifices. But they are ultimately two peas of a pod.

Like Thor and Loki. But who is Thor and who is Loki? ;)

Re:How we do Vue at GitLab: one year later by giantsloth on Friday November 10, 2017 @04:59PM (#15673402)
It doesn't support sass, but it does support scss.
Re:How we do Vue at GitLab: one year later by allover on Friday November 10, 2017 @05:58PM (#15673805)
To all intents and purposes, when people say Sass, they mean Scss.