-
Notifications
You must be signed in to change notification settings - Fork 149
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
base: master
Are you sure you want to change the base?
Bundle bulma CSS #1086
Conversation
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
What is required to move forward with this? |
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.