-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Dart Sass from LibSass #1655
Conversation
05d0417
to
de4e38a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great for me when testing locally 👍
Just wanted to ask if we will also include the generated files from running the ./bin/rails dartsass:install
command to help watch for any CSS changes, similar to alphagov/government-frontend@1ed1fae
If so, I think we would also need to create a separate PR to add support for this in govuk-docker
db259d5
to
3f9830d
Compare
I'm on the fence about adding it here because of the limited number of pages (perhaps around 4?) and the difficulties of testing frontend changes without being signed in but perhaps I should consider enabling it here? What do you think? It might have been useful with the recent cross service header changes. |
Thanks, these are good points, sounds reasonable to me for this application, and you have already added a section on this in the developer docs should another developer want to add support for this in the future - https://github.com/alphagov/govuk-developer-docs/blob/3bac7fd893e0442f1e1afd3a28bdebe600bd5174/source/manual/migrate-to-dart-sass-from-libsass.html.md#watch-mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, nice work!
Happy to approve the PR once the merge conflict is resolved, I think this will likely solve itself when testing is complete and "TEMP" commits removed/squashed.
671c397
to
303c1dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me 👍
303c1dd
to
42f1b26
Compare
- Create `dartsass.builds` initializer and add all Sass files to be compiled. See https://github.com/rails/dartsass-rails#configuring-builds - Create .keep - Update manifest file to use /builds directory - Ignore /builds
42f1b26
to
f0d8e09
Compare
What
Migrate to Dart Sass from LibSass.
Why
Visual Changes
None.
How can I test these changes?
yarn jasmine:prepare
(or runbundle exec rake app:assets:clobber app:assets:precompile
)/builds
folder:app/assets/builds
should now be populated with CSS files. Note, the/public
directorydartsass-rails
is bundled and any Dart Sass warnings encountered during the compilation process are reported)manage your GOV.UK email subscriptions, what do you want to get emails about?, get emails from GOV.UK, how often do you want to get emails? to ensure the absence of errors.
Anything else
Once the PR gets the green light, any temporary commits and references to local gems e.g.
gem "govuk_publishing_components", path: "../govuk_publishing_components"
will be removed.See: