Skip to content

pantojs/panto-transformer-uglify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panto-transformer-uglify

NPM version Downloads Build Status Dependency status Dev Dependency status Coverage Status

Uglify transformer for panto.

panto.loadTransformer('uglify');

panto.pick('**/*.js').read().uglify({
    parseOptions: {
        strict: true
    },
    compressOptions:{

    },
    ignoreError: true,
    isSlient: true
});

options

  • parserOptions: object, see here
  • compressorOptions: object, see here
  • generatorOptions: object, see here
  • ignoreError: boolean, if fail when error
  • isSlient: boolean, if log warnning message