Skip to main content

minify_js

Function minify_js 

Source
pub fn minify_js(src: &str) -> String
Expand description

Best-effort JS minifier: strips comments and collapses whitespace runs into a single space. Not a full parser; regex literals, multi-line strings, and JSX edge cases are not handled.