Performance: Setting up SASS (npm, dart-sass)
MEDIUM IMPACT
This affects the build time and initial page load speed by how CSS is generated and delivered.
Installing dart-sass via npm and running 'sass src/styles:dist/styles --no-source-map' for fast compilation.Using an outdated Ruby SASS compiler installed globally and compiling styles manually with slow commands.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Ruby SASS manual compile | N/A | N/A | Blocks CSS delivery delaying paint | [X] Bad |
| Dart-sass via npm automated compile | N/A | N/A | CSS ready faster, reduces render-blocking | [OK] Good |