Skip to content
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

Replace node-sass with dart-sass #1

Closed
wants to merge 3 commits into from
Closed

Replace node-sass with dart-sass #1

wants to merge 3 commits into from

Conversation

dylemma
Copy link
Member

@dylemma dylemma commented Jan 13, 2021

We had an indirect dependency on node-sass (via scssify), which is now deprecated, not to mention giving us issues where we were stuck with overly-specific node/npm versions. This branch is mainly to replace node-sass with https://www.npmjs.com/package/sass within scssify.

I touched a couple tests so that they would pass on my machine (I'm on windows, where path comparisons are kinda screwy).
I also dropped support for "custom importers" due to a lack of need for them for our use case, and due to sass/dart-sass#574 which means that the underlying support is behaving differently than it did with node-sass.

I'm making this PR as just a draft, since I don't expect to be able to merge this into the main scssify, and I want to be able to easily find this again without having to remember the branch name or commit hash. No need to actually merge this, at least for now.

- 'sass' is the new pure-js "drop in replacement" for 'node-sass'
- update emitDependencies to not emit the "starting" file (seems
  like node-sass was avoiding it, but new sass includes it)
- update tests to fix path comparison logic on windows
- new 'sass' doesn't seem to have consistent support for custom
  importers, so after fighting with it for a bit I decided to just
  kill support for that since we aren't using it in Code Dx.
- Add package-lock.json to the gitignore, since apparently it's not
  supposed to be used for libraries / can't be published with npm
- Add .idea/ to the gitignore, since I'm using IntelliJ
@dylemma dylemma closed this Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant