Skip to content

fedeghe/malta-js-uglify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


npm version npm downloads npm downloads

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-js package

Sample usage:

malta app/source/index.js public/js -plugins=malta-js-uglify

or in the .json file :

"app/source/index.js" : "public/js -plugins=malta-js-uglify",
"app/source/main.ts" : "public/js -plugins=malta-typescript...malta-js-uglify"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.js',
    'public/js',
    '-plugins=malta-js-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('=========');
    });

About

malta plugin to uglify js code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published