-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --minify #143
Comments
The work is ongoing on kazuho/experiments/minify4. |
Support for minification (turned on by specifying "--minify" as a compile option) has been introduced to master at commit dc3f7cc. There should be no side-effects to the generated code (when to using --minify) expect for the fact that support for annocated comments targeting the Google Closure Compiler minifier has been dropped (Google Closure Compiler should continue to work wo. type annotations). Things yet to be done:
|
A brief description of the minification and export rules can be found at https://github.com/jsx/JSX/wiki/Minification-and-export-rules |
Closing the issue as finished.
Regarding these three leftovers, work on the first has been finished (see #157). It would be preferable to work on the other two as well, but they are considered low priority since they would only have small effect in terms of code size. |
Ho about combination of --minify and --enable-source-map? |
@gfx |
👍 |
Add support for minification at the JSX compiler level, for better compression ratio and ease of use.
Background: JavaScript-level minifiers have problem in efficiency and maintaining compatibility, since it cannot use any type information (i.e. property names that need to be preserved needs to be listed, and those listed would never get minified even when possible).
Note: introduce export attribute for classes / functions of which names should be preserved so that they would be callable from JavaScript.
The text was updated successfully, but these errors were encountered: