SAP-archive / grunt-openui5

Grunt tasks around OpenUI5
Apache License 2.0
90 stars 34 forks source link

Add terser as option to minify js #153

Closed CarlosOrozco88 closed 4 years ago

CarlosOrozco88 commented 4 years ago

Adds js compression with terser. By default all existing configurations will use uglifyjs.

https://github.com/terser/terser Why choose terser? uglify-es is no longer maintained and uglify-js does not support ES6+.

terser is a fork of uglify-es that mostly retains API and CLI compatibility with uglify-es and uglify-js@3

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

matz3 commented 4 years ago

Thanks for your work! I think we could even replace uglify with terser, which would make both API and the plugin code less verbose. We also did that in the ui5-builder project a while ago and did not encounter any issues so far: https://github.com/SAP/ui5-builder/pull/305