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:
- Compile the CSS assets with the
sasspackage (or the fastersass-embedded) and write the results toapp/assets/build. - Have the
cssbundlinggem pick up the assets.
Dev Notes:
-
app/assets/buildshould 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