You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsmin makes no attempt to be compatible with ECMAScript 6 / ES.next / Harmony
However, you also include:
If you're using jsmin on ES6 code, though, you might find the quote_chars parameter useful: from jsmin import jsmin with open('myfile.js') as js_file: minified = jsmin(js_file.read(), quote_chars="'\"")
I'm a bit puzzled. Can jsmin handle ES6 by using the referenced quote_chars parameter? Or is it always dangerous to use jsmin on any ES6 code?
I tested it out by including a few features from ES6(arrow functions and Promises) in the javascript file I'm minifying with jsmin.
Everything runs correctly. Could we enhance the readme.md to clarify what is wrong with using jsmin on ES6?
Thanks!
The text was updated successfully, but these errors were encountered:
According to the readme:
However, you also include:
I'm a bit puzzled. Can jsmin handle ES6 by using the referenced
quote_chars
parameter? Or is it always dangerous to use jsmin on any ES6 code?I tested it out by including a few features from ES6(arrow functions and Promises) in the javascript file I'm minifying with jsmin.
Everything runs correctly. Could we enhance the readme.md to clarify what is wrong with using jsmin on ES6?
Thanks!
The text was updated successfully, but these errors were encountered: