About
I wrote This CSS minifier tool in Rust as a way of learning Rust. The way it works is straightforward. As the goal of minifier is to reduce the file size, the unnecessary characters of the source such as white spaces, comments, and line breaks are removed.
Below, I tried to minimize bootstrap.css
which is an unoptimized version of the bootstrap with my css_minifier
and the result is a 4KB difference between the optimized version of the bootstrap file and the output.
You can ignore the time
command as itβs used for measuring the execution time of a specific command, in this case, our css_minifier
.