Use Dart Sass
Created by: felixfbecker
sass-loader
recommends using Dart Sass, which has become the official Sass implementation, as opposed to node-sass
(libsass
).
- No Node native addons, which means easier Node version upgrades
- Potentially solve some of the build flakiness (we don't know the root cause, but the errors always occur with
node-sass
) - More precise float division
- Get new Sass features faster
But it is slightly slower. Build time sampled of enterprise web build from master (BEFORE), in seconds:
Count : 100
Average : 188.28016
Sum : 18828.016
Maximum : 283.475
Minimum : 155.124
StandardDeviation : 30.953466408162
Property :
On this branch (AFTER):
Count : 6
Average : 205.923166666667
Sum : 1235.539
Maximum : 254.762
Minimum : 163.391
StandardDeviation : 37.7923489739215
Property :