-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Switch to dart-sass. #2724
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
Switch to dart-sass. #2724
Conversation
67afd68 to
9ca70ce
Compare
|
This seems to be fine.
The final CSS diff https://gist.github.com/XhmikosR/dffbd893f193cb21be9933459d3bd06b/revisions 1109 vs 1014 packages and https://packagephobia.now.sh/result?p=node-sass |
497af9d to
d7a60e6
Compare
|
LGTM but @nschonni has lots of contributions into node-sass (and one into dart-sass) so I defer to them as the expert here. |
|
I'm mostly -0 on this because it's probably more important for the redesigned website setup than here where it's working. node-sass is faster, but since it's a native add-on, it has the install quirks that go with that. Unless you're looking at leveraging feature like the module system in here which is only available in dart-sass, I don't see the point of swapping |
|
Well, its install size and the fact that we compile it on each build is
enough reasons for me. Assuming dart-sass does not have the same problem
with binaries when deploying, it's definitely an easy win.
I see no reason to keep using a 8x bigger package for a few milliseconds
that takes to build css,when the whole build takes hundreds of seconds.
…On Wed, Oct 30, 2019, 22:17 Nick Schonning ***@***.***> wrote:
I'm mostly -0 on this because it's probably more important for the
redesigned website setup than here where it's working. node-sass is faster,
but since it's a native add-on, it has the install quirks that go with
that. Unless you're looking at leveraging feature like the module system in
here which is only available in dart-sass, I don't see the point of swapping
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2724?email_source=notifications&email_token=AACVLNIJQPZH5VFV4FR7EBDQRHTWTA5CNFSM4JFAFXXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECVT7LQ#issuecomment-548093870>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNMMETH2EDVGA5FGOYLQRHTWTANCNFSM4JFAFXXA>
.
|
It should be unless it's running on an unsupported platform (ARM, s390, etc...), and the downloads get cached after the first install |
|
I don't think it is. It's built on each deployment AFAICT.
…On Wed, Oct 30, 2019, 22:32 Nick Schonning ***@***.***> wrote:
the fact that we compile it on each build
It should be unless it's running on an unsupported platform (ARM, s390,
etc...), and the downloads get cached after the first install
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2724?email_source=notifications&email_token=AACVLNOOOWCIMID3NDFNQPDQRHVM3A5CNFSM4JFAFXXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECVVNIA#issuecomment-548099744>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNJAKWNJQFO7ITZYRQDQRHVM3ANCNFSM4JFAFXXA>
.
|
|
I think that was just in that webhook log between the Node 13 release and the node-sass 4.13 one. |
|
Perfect, then it's one thing less to worry about. That being said, still a decrease of 8x in size, and -100 deps is still a win. Note that I the Sass switch was my patch, and the reason I didn't went with dart-sass back then is because I hadn't played with it yet. If I were to make the switch now, I'd make the patch with dart-sass. |
|
BTW I still see https://nodejs.org/github-webhook.log Not sure why it says when we have pushed more in master. |
|
@rvagg ^^ |
|
the log keeps getting appended to until it's rotated, scroll right down, I see |
|
Oops, sorry, I didn't see that :) Ok, so all good then. |
be45208 to
c47c5c9
Compare
7a973b7 to
e7c5ab3
Compare
|
@nodejs/website Anyone have informed opinions on this? |
|
I guess you mean apart from me :) #2724 (comment) |
Yes, "someone who is not the change author". 😀 |
946abbe to
ba8de34
Compare
|
This is the first time I hear about dart-sass and I think I'm +0 here. I prefer to avoid native modules so the fact that it's compiled to pure JS is nice. I could forsee many projects switchting to it if it's the reference implementation. On the other hand, I'm not sure how to feel about Dart itself. Probably not a good indicator, but it currently has 1/4 the downloads of node-sass but is gaining traction: https://www.npmjs.com/package/sass |
|
The only things I've seen so far is:
So, AFAICT this is a win-win situation. |
ba8de34 to
4b01730
Compare
4b01730 to
d55486a
Compare
|
Ping @nodejs/website. See my comments above. I really want to move with this, since the less deps, the better. |
|
@rvagg would it be possible to rotate https://nodejs.org/github-webhook.log more frequently? It becomes way too big. |
Need to double check the generated CSS, but this has a lot less dependencies.