Skip to content

build-sass: Add support for ".scss" extension#8385

Merged
aduth merged 2 commits intomainfrom
aduth-build-sass-optional-css
May 12, 2023
Merged

build-sass: Add support for ".scss" extension#8385
aduth merged 2 commits intomainfrom
aduth-build-sass-optional-css

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 11, 2023

🛠 Summary of changes

Enhances @18f/identity-build-sass to remove the requirement for .css.scss file naming convention, supporting both .css.scss and .scss. In either case, output with the basename + .css.

This is planned to be used in #8375 to allow components to define accompanying styles with a .scss file.

This makes implementations simpler, and avoids tying the tool to Rails asset pipeline conventions.

📜 Testing Plan

Included specs pass:

yarn mocha app/javascript/packages/build-sass/index.spec.js

aduth added 2 commits May 11, 2023 15:57
changelog: Internal, Build Tooling, Improve filename extension flexibility for stylesheet compilation
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit cb70af0 into main May 12, 2023
@aduth aduth deleted the aduth-build-sass-optional-css branch May 12, 2023 13:02
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