This plugin can be used on: .js files
browserify
needs to be globally available (yarn global add browserify
)
Options : You can pass the options using an options
parameter to the plugin. Do not use the -o
parameter cause malta-browserify adds it automatically with the right outfilename.
Sample usage:
malta app/source/home.js public/js -plugins=malta-browserify[options:[\"--dg\",\"-ig\",\"--deps\"]]# remember that options cannot contain spaces
or in the .json file :
"app/source/home.js" : "public/js -plugins=malta-browserify[options:[\"--dg\",\"-ig\",\"--deps\"]]"
or in a script :
var Malta = ;Maltastart {var s = this;consoleconsole;'plugin' in o && console;console;};