module

Hwaro::Utils::JsMinifier

Constants

REGEX_PRECEDING_KEYWORDS = Set {"return", "typeof", "instanceof", "in", "new", "delete", "void", "throw", "case", "do", "else"}

Reserved words only: of, yield and await are valid identifiers outside their special contexts, so of / 2 must stay a division.

Instance methods

minify(js : String) : String

Perform conservative JS minification

Source