#![deny(clippy::all)]
#![allow(clippy::match_like_matches_macro)]
#![allow(clippy::needless_update)]
#![allow(clippy::mutable_key_type)]
use swc_atoms::JsWord;
use swc_css_ast::*;
use swc_css_visit::VisitMutWith;
use self::{compressor::compressor, options::MinifyOptions};
mod compressor;
pub mod options;
pub(crate) mod util;
pub fn minify(stylesheet: &mut Stylesheet, _options: MinifyOptions) {
stylesheet.visit_mut_with(&mut compressor());
}
#[inline]
fn is_css_wide_keyword(ident: &JsWord) -> bool {
matches_eq_ignore_ascii_case!(
ident,
"initial",
"inherit",
"unset",
"default",
"revert",
"revert-layer"
)
}