-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: Use sass rather than node-sass #16
Conversation
Doesnt that require ruby? I've used https://www.npmjs.com/package/gulp-dart-sass which makes use of dart-sass which works flawlessy. |
https://www.npmjs.com/package/sass
|
Most users are not on an ARM Linux. I am reluctant to fix this issue because it's irrelevant to most users, and it did make the setup look strange. On the other side, webpack's sass-loader does auto-detection of node-sass and sass. It could be better if gulp-sass does the same. dlmanning/gulp-sass#748 If gulp-sass ships that breaking change, we will definitely convert both webpack and dumber setup to use dart sass since it provides maximum compatibility. |
From sass official site, I am bit surprised to know that the original Ruby sass is deprecated since March 2019. Dart sass is now the reference implementation, Libsass (node-sass uses) is the secondary implementation. That means we need to move to dart sass. |
I thought that until I read the |
My point is not to stick with anything. My point is gulp-sass should be smarter, and it can be, as my comment in that gulp-sass PR. I agree we should move to dark-sass, just want to hold this PR for few days for some opinions. I don't expect that gulp-sass PR to be merged, as the author never responded on any PRs. |
Ah yes, I failed to notice that |
That's too bad. If gulp-sass didn't merge the PR, we will use gulp-dart-sass (but it's not very active). Or write a new gulp plugin for sass. It's trivial, and I can cut off lots of unneeded deps (chalk, lodash, node-sass, replace-ext, strip-ansi, through2), remove async mode because sync mode is twice faster. The downside is I need to maintain it. |
gulp-dart-sass should work for you. What about update this PR to use it instead? |
I checked |
All you gulp-dart-sass pr updated are devDeps, the one (sass) in deps doesn't count because it's not major version update. That pr would not affect anything here, because devDeps is irrelevant when using gulp-dart-sass.
If you were talking about the test in gulp-dart-sass project, I think that's not a broker for us. |
Great, update to gulp-dart-sass v1 pls. |
@3cp I've now updated The test failures appear to be related to being unable to install node: |
Thx. I will run some selected e2e tests. |
node-sass
will fail to install when:Even with Python 2 and build tools installed, building
node-sass
from source takes minutes on a Raspberry Pi 4.For our large project there is no noticeable speed difference when using
sass
instead ofnode-sass
andsass-loader
picks it up automatically.