Minifying the TVML JS

Hi,


Is anyone minimizing their TVJS files?

In the apple documentation it suggestes to do this for performance, at least for the application.js file however I have now tried grunts UglifyJS2 and the closure compiler and none of the work with the scipt files.


Can anyone suggest a good minification tool to use that would work with TVJS/TVML?


Cheers.

Replies

I am using gulp.


Before minifying I have to transpile the JS's to ES5 since the uglifiers still don't support templates.

For those means I use "gulp-babel" (plus the es2015 preset) and "gulp-uglify"