Skip to content

Commit

Permalink
Merge branch 'main' into minor_ci_improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Jan 2, 2024
2 parents ca7be6f + d9ff9be commit b519e61
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 48 deletions.
83 changes: 37 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ log = "0.4"
# This guy has no idea how to semver, not worth my time updating
handlebars = { version = "=4.2.2", features = ["dir_source"] }
rayon = "1"
minifier = "0.0"
minifier = "0.3"
sha2 = "0.10"
futures = "0.3"
subprocess = "0.2.7"
Expand Down
2 changes: 1 addition & 1 deletion website/src/assets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl AssetPaths {
let style_css = {
let contents = include_str!("style.css");

let minified = minifier::css::minify(contents).unwrap();
let minified = minifier::css::minify(contents).unwrap().to_string();

let hash = hash(minified.as_bytes());
dir.create_compressed_file(&format!("{hash}.css"), minified.as_bytes())
Expand Down

0 comments on commit b519e61

Please sign in to comment.