-
Notifications
You must be signed in to change notification settings - Fork 381
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
Migrate to use the new Sass JS API by default #846
Conversation
Keep the legacy API around, since its removal is still probably a while from now. Fixes dlmanning#837
Add a migration section, link to relevant Sass documentation, and add a section about still using the legacy API.
Hei William, thanks a lot for pushing this! I played around with your branch and wasn't able to
(it's an old project, don't ask…). I have passed 'node_modules' as an |
If that doesn't work, we use a |
Thanks, that does it! 👍 Unfortunately the compile time I see is still about twice as high when compared to the legacy |
Speed benefits will probably depend on you also using sass-embedded instead of the regular |
I just tested this branch with Not surprisingly, the |
One of the goals of Footnotes
|
Indeed. I only use the globber as a convenience for importing all my mixins with one line instead of one-by-one. If someone wanted to implement a new globber, I think the simpler FileImporter API would be a better fit than the full Importer API. To be clear, I do not consider a lack of a globber a show stopper for this PR. I'm using this branch now for a new project and hope it will be merged soon. Thanks for your work, @wkillerud! |
Would love to see this merged. Have tested myself and is working and I am using it succesfully with sass-embedded. Notes are.
|
I just tested this, and it works great, I needed to switch to the newer compile, to get settings such as quiet, quietDeps and silenceDeprecations working, and it works nicely. |
@dlmanning Hi, is it possible to merge this PR? |
@dlmanning is there any chance to merge this ? It would solve #870 and #867 |
Maybe @xzyfer is able to help out here, considering they published the last release in 2021? |
I didn't have that much patience, so I just forked https://github.com/wkillerud/gulp-sass/tree/feat/migrate-to-v2 the code itself is "pretty simple" as its a wrapper that passes the info to sass. But this should surely be released. |
Thanks for the tag. I don't actively follow this repo. Will take a look and aim to get a release out this week now that node-sass is deprecated. |
Any movement in there? Still seeing lot of
on my build pipeline |
@xzyfer Any updates on this? |
Hey @dlmanning Any chance of having this merged? Thanks. Edit: maybe @xzyfer is at charge now? |
Thanks for all your effort @wkillerud. I'm very sorry for the delay in getting this released. |
The legacy render API will be removed in sass 2.0. Keep the legacy API as an option, but default to the new API to encourage adoption.
Add
sass-embedded
in tests and update assertions to support the results from v2 of the JS API.Fixes #837