Replace sassc-rails gem with Dart sass

Problem

We are looking to replace the sassc-rails gem with a dart-sass implementation because the former is completely outdated.

Proposal

The current approach in the GitLab project is:

  1. Compile the CSS assets with the sass package (or the faster sass-embedded) and write the results to app/assets/build.
  2. Have the cssbundling gem pick up the assets.

Dev Notes:

  • app/assets/build should be git-ignored
  • SASS cannot contain @import 'folder/**/*' with globs
  • The compiling script should be exposed in package.json as build:css
  • The dev version of the script could be as easy as running a sass command in watch mode

In the GitLab we have a custom compilation script because the config is a little more complex, here in this project the config should be easier. Either calling the sass cli directly or integrating it with webpacker?

Result

Happiness

Next steps (if any)

N/A

How will we measure success?

N/A

Edited by Lukas Eipert