question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Dart Sass

See original GitHub issue

It looks like version 2.0.0 added support for Sass, which is rad! However, it also looks like it only supports Node Sass, which uses LibSass. It would be good to support Dart Sass, the new reference implementation that’s distributed as pure JS, as well. This means that it doesn’t require users to either download a binary blog or natively compile C++ code to use. See the sass-loader documentation for how to configure it to use Dart Sass.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
bugzpoddercommented, Nov 4, 2018

Was able to get dart-sass working by adding this to package.json and using yarn resolutions (https://yarnpkg.com/lang/en/docs/selective-version-resolutions/), if anyone wants to test it out.

“resolutions”: { “node-sass”: “npm:sass” }

3reactions
aceyoung9commented, Mar 6, 2019

If you’re not using yarn, npm 6.9 added package-aliasing, so npm install node-sass@npm:sass will install dart-sass and play nicely with the default create-react-app config.

Run npx sass --version to verify your sass install.

Further reading:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dart Sass
When installed via npm, Dart Sass supports a JavaScript API that aims to be compatible with Node Sass. Full compatibility is a work...
Read more >
The reference implementation of Sass, written in Dart. - GitHub
Install Dart. If you download an archive manually rather than using an installer, make sure the SDK's bin directory is on your PATH...
Read more >
dart-sass - npm
A pure JavaScript implementation of Sass.. Latest version: 1.25.0, last published: 3 years ago. Start using dart-sass in your project by ...
Read more >
Dart SCSS Support Request - Visual Studio Feedback
Adding my voice here that the version of Sass supported by Visual Studio, LibSass has been deprecated for two years. Dart Sass, the...
Read more >
How to Install Dart Sass in Windows? - GeeksforGeeks
Installing Dart Saas on Windows: ... Follow the below steps to install dart Saas n Windows: Step 1: In your browser navigate to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found