Crates.io | const-css-minify |
lib.rs | const-css-minify |
version | 0.1.5 |
source | src |
created_at | 2024-05-04 06:55:40.266216 |
updated_at | 2024-05-07 11:28:02.551277 |
description | Include a minified css file as an inline const in your high-performance compiled web application |
homepage | |
repository | https://github.com/scpso/const-css-minify |
max_upload_size | |
id | 1229436 |
size | 72,890 |
Include a minified css file as an inline const in your high-performance compiled web application.
use const_css_minify::minify;
const CSS: &str = minify!("./path/to/style.css");
const_css_minify
is not a good solution if your css changes out-of-step with your binary, as
you will not be able to change the css without recompiling your application.
const_css_minify
will:#ffffff
will be substituted with #fff
but #fffffe
and
#ffffffff
will be left untouched)rgb
function (e.g. rgb(255, 255, 254)
will be substituted with
#fffffe
, and rgb(255, 255, 255)
with #fff
)const_css_minify
will not:gz
, br
or deflate
This project is licensed under the terms of the MIT License.