-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Default SASS implementation #199
Comments
We have to stick to 8.0.1 because |
@robclancy Interesting. I haven't noticed any slow down when I switched a large ember app from node-sass -> dart-sass. At least we have the |
I made a comment about the slowness here as well: #192 (comment) TLDR: When I told a @himynameisjonas about this they also switched back to |
@javve we've also switched to 4.5-6 seconds vs 400-500ms for node-sass. Then using the same addon inside the app with its own scss files is: 8-9 seconds vs 400-600ms for node-sass. I highly recommend to make node-sass by default and dart version an opt-in. Also, dart version allow to use variables that are not imported in the file were you are using them (or maybe dart version is smart enough to resolve dependencies? But not sure). |
Yeah honestly I'm probably just going to fork this in future based on when it was just |
Making The motivation was based on the fact that As always YMMV - that's why there is an escape-hatch since other implementations do exist. For the projects I've worked on
I think installing |
The fact it never worked when I tried to configure to node last time is why I will be forking it. Node is now a second class citizen here even though dart has significant performance regressions. And addons that try to do everything always do each thing a little worse than one that just does one thing well. If node-sass has a bug I guarantee it will take much longer to fix here than if this was only node-sass still. On smaller projects maybe I would use this version since it would be less sass to wait on, or more likely I would ditch sass all together since css is pretty good now. But dart-sass here is so slow... just no. |
Do we know if there's a way to point Say you have the dart-sass version running in the DartVm? |
The default is currently the dart sass version. Which is the only one that works on ARM processors as well. |
@EWhite613 @knownasilya Super simple, just need to add:
I was able to cut my production build time from 9 mins to 3 mins locally with this change vs dart-sass. (This is because we have 250 white labels to compile stylesheets for). Confirmed no issues on Apple Silicon Mac & x86 Jenkins CI Linux Server. |
Oh, that might be worth a breaking change to make it the default. |
Originally we had all addons had a dev dependency of ember-cli-sass. Is it now the case I have to go through all our addons and add in the
sassOptions: {implementation: require("node-sass")}
AND
then install node-sass on every addons dev dependencies?
The text was updated successfully, but these errors were encountered: