Page 1 of 1

JS Minimization

Posted: Mon Mar 21, 2016 4:39 am
by rkmore
At some point on the roadmap I think it would be nice to have a "minimize" option to force the resulting .JS files to be as compact as possible.

Obviously this would be a future feature when all of the more pressing stuff gets completed.

Just as an FYI if you run Google Closure Compiler on the currently output .JS files the resulting files are non-functional (despite the fact that you get warnings but no actual errors).

Keep up the awesome work. Really starting to have something here.

Thanks

RKM

Re: JS Minimization

Posted: Mon Mar 21, 2016 9:58 am
by JS-Support @Userware
Dear RKM,

Thanks a lot. Yes, minification is on our internal roadmap for late 2016 - early 2017.

By the way, according to a discussion on the JSIL forum (JSIL is the open-source C# to JS transpiler used by CSHTML5), disabling "property renaming" in Google Closure, and/or adding the "--language_in=ECMASCRIPT5" parameter, and/or switching to simpler optimization may fix the issues. We haven't tried yet. Here is the link to the discussion:
https://github.com/sq/JSIL/issues/522

Thanks again.
Regards,
JS-Support