[GH-ISSUE #22] Minify CSS before embedding into the binary #16

Closed
opened 2026-02-27 10:15:18 +03:00 by kerem · 2 comments
Owner

Originally created by @matze on GitHub (Mar 4, 2023).
Original GitHub issue: https://github.com/matze/wastebin/issues/22

Not sure if something exists for that though. Ideally the style.css in the source tree stays readable …

Originally created by @matze on GitHub (Mar 4, 2023). Original GitHub issue: https://github.com/matze/wastebin/issues/22 Not sure if something exists for that though. Ideally the style.css in the source tree stays readable …
kerem closed this issue 2026-02-27 10:15:18 +03:00
Author
Owner

@phbender commented on GitHub (Jul 14, 2024):

An approach might be a build.rs file which applies some optimizations on the (embedded) assets, e.g. with css-minify. However, if you have the gzip layer, I don't know if that makes that big of a difference in performance, and also in binary size.

<!-- gh-comment-id:2227428724 --> @phbender commented on GitHub (Jul 14, 2024): An approach might be a [`build.rs`](https://doc.rust-lang.org/cargo/reference/build-scripts.html) file which applies some optimizations on the (embedded) assets, e.g. with [css-minify](https://github.com/Mnwa/css-minify). However, if you have the `gzip` layer, I don't know if that makes that big of a difference in performance, and also in binary size.
Author
Owner

@matze commented on GitHub (Jul 20, 2024):

Indeed, not worth it. gzipping after minification is only a few ten bytes smaller than just gzipping.

<!-- gh-comment-id:2241203576 --> @matze commented on GitHub (Jul 20, 2024): Indeed, not worth it. gzipping after minification is only a few ten bytes smaller than just gzipping.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#16
No description provided.