Skip to content

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Aug 30, 2024

This PR is a proposal to do several things, as part of refactoring.

  • sourceMappingUrl cleaning we do for some themes with bootstrap is not done with revealjs. This refactor our code to do this. This will fix revealjs quarto.css contains wrong sourceMappingUrl #10423

  • With our current quarto-html dependency, used with revealjs, it leads to adding as dependency an empty file. Basically, quarto-html-<hash>.css was only containing sourceMappingUrl comment line, and now is empty. This PR now check for emptyness of the processed CSS file and if so, it does not add the CSS file as a HTML dependency. This save some typescript processing too.

I did not add any test because not sure what should be tested in this case. I tried adding one to check that if a quarto-html-<hash>.css exists, it is not empty, but I think this was a bad test.

Hopefully this change makes sense. Happy to discuss it.

Also, this PR uses now regex for the revealjs test that check a resource with hash, because it is at least the third time this week we would need to modify this test.

cderv referenced this pull request Aug 30, 2024
This happens with `quarto-html` dependency, which can be emptied when it contains only the `quarto-variables-start` part.

Detecting this helps reduce unneeded typescript processing, and inserting an empty file.
@cderv cderv force-pushed the revealjs/remove-sourcemapurl branch from 14f3fff to 0e0d27f Compare September 2, 2024 18:29
@cderv cderv merged commit 6173a70 into main Sep 3, 2024
47 checks passed
@cderv cderv deleted the revealjs/remove-sourcemapurl branch September 3, 2024 07:40
cderv added a commit that referenced this pull request Nov 26, 2024
…wn file

This fixes #11532 regression from 1.6 due to #10657 which reverted back to #660
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.

revealjs quarto.css contains wrong sourceMappingUrl

2 participants