Naughty Pinching Mannequins
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    aster-uglifypublic

    aster-uglify

    NPM version Build Status

    Minify scripts with UglifyJS2 in aster.

    Usage

    First, install aster-uglify as a development dependency:

    npm install --save-dev aster-uglify

    Then, add it to your build script:

    var aster = require('aster');
    var uglify = require('aster-uglify');
     
    aster.src('src/**/*.js')
    .map(uglify({
      mangle: true,
      compress: {
        unsafe: true
      }
    }))
    .map(aster.dest('dist'))
    .subscribe(aster.runner);

    API

    uglify(options)

    options.mangle

    Type: Boolean Default: false

    Mangle names.

    options.compress

    Type: Object Default: false

    See available list of options here.

    License

    MIT License

    install

    npm i aster-uglify

    Downloadsweekly downloads

    10

    version

    0.0.3

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar