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

Bundle bulma CSS #1086

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bundle bulma CSS #1086

wants to merge 1 commit into from

Conversation

legoktm
Copy link

@legoktm legoktm commented Aug 2, 2023

To support restricted or offline environments, bundle the bulma CSS with grcov instead of loading it from the jsdelivr CDN.

HTML reports will now create bulma.min.css in the root directory and relatively reference it in all the HTML files.

Fixes #1079.


@calixteman: I don't think this is what you had in mind, but let me know what you think, I'm happy to implement/work on a different approach if that would be preferred.

To support restricted or offline environments, bundle the bulma CSS with
grcov instead of loading it from the jsdelivr CDN.

HTML reports will now create `bulma.min.css` in the root directory and
relatively reference it in all the HTML files.

Fixes mozilla#1079.
fn make_context() -> Context {
let mut ctx = Context::new();
let ver = std::env::var("BULMA_VERSION").map_or(BULMA_VERSION.into(), |v| v);
ctx.insert("bulma_version", &ver);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd keep this and add an env var or a feature for the bundling.

Copy link

Choose a reason for hiding this comment

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

What would be the advantages of having this environment variable instead of always bundling the CSS?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Some people would prefer not bundling it, I guess.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also if you want to go the extra mile, you may add a cli option to pass the css file.

@marco-c if you are fine with the idea of bundling I can accept this patch.

@mikhasd
Copy link

mikhasd commented Sep 20, 2023

What is required to move forward with this?

@marco-c
Copy link
Collaborator

marco-c commented Sep 20, 2023

@mikhasd addressing @lu-zero review comment

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.

Option to use local bulma instead of jsdelivr CDN
4 participants