JS Minimization

rkmore
Posts: 55
Joined: Mon Dec 07, 2015 1:53 pm

JS Minimization

Postby rkmore » Mon Mar 21, 2016 4:39 am

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

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: JS Minimization

Postby JS-Support @Userware » Mon Mar 21, 2016 9:58 am

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


Return to “General Discussion and Other”

Who is online

Users browsing this forum: No registered users and 37 guests

 

 

cron