Uh oh!
There was an error while loading. Please reload this page.
Switch to dart-sass. - #2724
Conversation
67afd68 to
9ca70ceCompareThis 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
d7a60e6CompareXhmikosR
commented
Oct 30, 2019
Trott
commented
Oct 30, 2019
LGTM but @nschonni has lots of contributions into node-sass (and one into dart-sass) so I defer to them as the expert here. |
nschonni
commented
Oct 30, 2019
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 |
XhmikosR
commented
Oct 30, 2019
via email
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>
.
|
nschonni
commented
Oct 30, 2019
It should be unless it's running on an unsupported platform (ARM, s390, etc...), and the downloads get cached after the first install |
XhmikosR
commented
Oct 30, 2019
via email
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>
.
|
nschonni
commented
Oct 31, 2019
I think that was just in that webhook log between the Node 13 release and the node-sass 4.13 one. |
XhmikosR
commented
Oct 31, 2019
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. |
XhmikosR
commented
Oct 31, 2019
BTW I still see https://nodejs.org/github-webhook.log Not sure why it says when we have pushed more in master. |
XhmikosR
commented
Oct 31, 2019
@rvagg ^^ |
rvagg
commented
Oct 31, 2019
the log keeps getting appended to until it's rotated, scroll right down, I see |
XhmikosR
commented
Oct 31, 2019
Oops, sorry, I didn't see that :) Ok, so all good then. |
be45208 to
c47c5c9Compare7a973b7 to
e7c5ab3CompareTrott
commented
Nov 12, 2019
@nodejs/website Anyone have informed opinions on this? |
XhmikosR
commented
Nov 12, 2019
I guess you mean apart from me :) #2724 (comment) |
Yes, "someone who is not the change author". 😀 |
946abbe to
ba8de34CompareThis 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
4b01730Compare4b01730 to
d55486aCompareXhmikosR
commented
Nov 20, 2019
Ping @nodejs/website. See my comments above. I really want to move with this, since the less deps, the better. |
XhmikosR
commented
Nov 24, 2019
@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.