JS 腳本壓縮工具,rJSmin 1.0.5 發布
rJSmin 使用 Python 語言重寫了 Douglas Crockford 的 jsmin.c ,速度更快;幾乎所有邏輯都使用正則表達式實現。
- there is no error detection: unterminated string, regex and comment literals are treated as regular javascript code and minified as such.
- Control characters inside string and regex literals are left untouched; they are not converted to spaces (nor to n)
- Newline characters are not allowed inside string and regex literals, except for line continuations in string literals (ECMA-5).
- “return /regex/” is recognized correctly.
- “+ +” and “- -” sequences are not collapsed to ‘++‘ or ‘--‘
- Newlines before ! operators are removed more sensibly
- rJSmin does not handle streams, but only complete strings. (However, the module provides a “streamy” interface).
rJSmin 1.0.5 發布了,該版本支持 !function 自調用語法。
本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!