malta-es-uglify
v1.0.5
Published
MAlta plugin to uglify es6
Downloads
3
Maintainers
Readme
This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin
Options : all options of the uglify-es package
Sample usage:
malta app/source/index.js public/js -plugins=malta-es-uglify
or in the .json file :
"app/source/index.js" : "public/js -plugins=malta-es-uglify",
...
or in a script :
var Malta = require('malta');
Malta.get().check([
'app/source/index.js',
'public/js',
'-plugins=malta-es-uglify',
'-options=showPath:false,watchInterval:500,verbose:0'
]).start(function (o) {
var s = this;
console.log('name : ' + o.name)
console.log("content : \n" + o.content);
'plugin' in o && console.log("plugin : " + o.plugin);
console.log('=========');
});