Skip to content

Conversation

gadenbuie
Copy link
Collaborator

The QUARTO_SAVE_SCSS=<prefix> allows users to save the intermediate Sass files used by Quarto for debugging purposes, but the file is currently written after a compilation step that may fail.

This PR changes the process to save the Sass file before compilation and then overwrite it after the compilation step with the additional --quarto-scss-export- variables added in.

@gadenbuie gadenbuie requested a review from cscheid November 15, 2024 16:00
@cscheid
Copy link
Collaborator

cscheid commented Nov 15, 2024

I think this is good. But let me ask: were you having trouble with a file that failed to compile between the two steps?

The process that adds the css vars block goes through a third-party parser that is not as robust as I'd prefer, and I'd like to see the failures!

@gadenbuie
Copy link
Collaborator Author

I think this is good. But let me ask: were you having trouble with a file that failed to compile between the two steps?

For posterity: the compilation issue was the result of using a variable before it was defined. So not a result of the parser but a legitimate Sass compilation issue.

@cscheid cscheid merged commit 7404f57 into main Nov 15, 2024
47 checks passed
@cscheid cscheid deleted the feat/scss-save-pre-compilation branch November 15, 2024 17:33
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