-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vuetify requires Dart sass
instead of node-sass
#2239
Comments
Webpacker does not support the Dart |
Webpacker should make an effort to be more agnostic for things like loaders etc and accept everything from an external config value or parameter. It's a continuous fight to override it's baked-in configuration. I understand it's built for a particular audience but at least let's document the possibility to delete the existing configuration :) PS: it appears node-sass is not actively maintained and dart-sass is a better solution. |
What leads you to say that? I could not find anything to that effect: |
I stand corrected. It's slowly losing momentum. Node sass always had issues, its big bulky and has dependencies. There's also the infamous rebuild flag needed when you change OS. For more info, : |
Agreed, but very slowly. 🐢 I would rather have a quicker solution at the cost of standard maintenance. Node Sass is just a wrapper around LibSass, the native C++ implementation of Sass. This is why it needs to be built specifically to your OS. Dart Sass, is reportedly up to 3x slower since you're computing things from within a VM: sass/dart-sass#113 |
sass
instead of node-sass
Just stopping by to share a growing justification for switching to dart sass: https://github.com/sass/sass/blob/master/accepted/module-system.md#timeline |
I want to use vuetify on the rails with webpacker. |
@tomocrafter I simply used compiled CSS version, and overides. |
@dfabreguette-ap I used #2235 (comment) this configuration and it worked as expected! |
This comment has been minimized.
This comment has been minimized.
Just a heads up that a new vulnerability in Meanwhile |
@G-Rath It was patched, but it was never a threat since
|
@jakeNiemiec yeah I just saw that, which is awesome! 🎉😄🥳
That's the theory, but ultimately it's still an known vulnerability, and so still has some risk, not all of which is development based ("highly secure" government platforms like CWP are a great example - every package that goes in gets audited and weighed up; that affects companies like mine downstream as we have to comply with their strict requirements & regulations). Additionally since it's allowed by the version constraints, package managers would be entirely within their rights to decide to use the insecure version instead of a later one if it was the version that could be most deduplicated (i.e I have That second one is a lot more theoretical given how old this version of But I've got no major dog in this fight: while I think it would be good in the long run to allow developers to use either or, and that this is a good example to why it would be a benefit, as you say it's no longer a threat so 🥳 |
Would there be any breaking change for users of webpacker if this change was done internally? |
Just wanted to mention that #2716 replaces I'm not sure when it'll actually go out to NPM, but I was able to just replace |
Hey !
I'm having this issue installing vuetify on a rails app.
https://vuetifyjs.com/en/getting-started/frequently-asked-questions#invalid-css-after-content-expected-was-material-light
Looking at my yarn.lock file, I realised node_sass was a Rails Webpacker dependency.
Any chance someone had same issue and knows how to either remove node_sass dependency OR force wepack to use sass lib ?
The text was updated successfully, but these errors were encountered: