Webpacker: Migrate from node-sass to dart-sass

Created on 29 Jul 2020  路  4Comments  路  Source: rails/webpacker

Has there been any discussion about migrating from node-sass to dart-sass?

Dart-sass is now the primary implementation of sass, and Webpack itself recommends dart-sass:
https://webpack.js.org/loaders/sass-loader/

help wanted

Most helpful comment

now that libsass (and hence node-sass) is deprecated maybe we should cut another 5.x release with this change?

All 4 comments

This is really important.

  1. python2 is now on EOL. node-sass doesn't support python 3. https://github.com/sass/node-sass/pull/2936
  2. node-sass has plan to make it deprecate. https://github.com/sass/node-sass/issues/2952

Is there any way to monkey patch the child dependency?

Just wanted to say that #2716 should resolve this.

I'm not sure when it'll actually go out to NPM, but I was able to just replace @rails/webpacker with the github repo.

now that libsass (and hence node-sass) is deprecated maybe we should cut another 5.x release with this change?

Was this page helpful?
0 / 5 - 0 ratings