sahat / hackathon-starter

A boilerplate for Node.js web applications
MIT License
34.8k stars 8.16k forks source link

Migrate from node-sass to Dart Sass #1236

Closed YasharF closed 1 year ago

YasharF commented 1 year ago

As of Oct 2020, node-sass has been deprecated in favor of dart sass.

https://github.com/sass/node-sass#readme

Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.

YasharF commented 1 year ago

Per https://sass-lang.com/dart-sass/

When installed via npm, Dart Sass supports a brand new JavaScript API, as well as a legacy API that’s fully compatible with the old Node Sass API. Note that when using the sass package, the synchronous API functions are more than twice as fast as the asynchronous API, due to the overhead of asynchronous callbacks.

YasharF commented 1 year ago

Fixed by: https://github.com/sahat/hackathon-starter/commit/daca13539a510ba89e2cd110f75f3dddc99a4f6f