Skip to content
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

Use SASS to build CSS #498

Merged
merged 4 commits into from
Dec 13, 2020
Merged

Use SASS to build CSS #498

merged 4 commits into from
Dec 13, 2020

Conversation

RobinDaugherty
Copy link
Member

This should allow more productivity when developing CSS changes. In development, the scss is compiled without compression and including line comments to help with development.

By moving the block of CSS out of main.erb, the file is reduced by a substantial amount, which should make development a bit easier as well.

When the gem is built (in CI), main.css is built with the compressed CSS and included in the gem. The scss files are not included in the gem.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 418192634

  • 14 of 15 (93.33%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.5%) to 95.438%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/better_errors/error_page_style.rb 13 14 92.86%
Totals Coverage Status
Change from base Build 417949787: -1.5%
Covered Lines: 523
Relevant Lines: 548

💛 - Coveralls

@BetterErrors BetterErrors deleted a comment from coveralls Dec 13, 2020
@RobinDaugherty RobinDaugherty merged commit a52d063 into master Dec 13, 2020
@RobinDaugherty RobinDaugherty deleted the feature/sass branch December 13, 2020 14:28
inulty-dfe added a commit to DFE-Digital/publish-teacher-training that referenced this pull request Jul 12, 2023
  The gem was added because the 2.10.1 release of better_errors broke
  the build. A new release 2.10.1 fixed the issue and SASSC is no longer
  needed in the application.

  The css is compiled and included in the built gem.

  Breaking Change: BetterErrors/better_errors#498
  Fix: BetterErrors/better_errors#520
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants