Skip to content

cheshirsky/gulp-uglifyjs-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-uglifyjs-wrapper

Tiny uglify-js wrapper for gulp.

Install

$ npm install --save-dev gulp-uglifyjs-wrapper

Usage

var gulp = require('gulp');
var uglifyWrapper = require('gulp-uglifyjs-wrapper');

gulp.task('default', function () {
    return gulp.src('src/file.ext')
        .pipe(uglifyWrapper({
            mangle: false,
            output: {
                comments: /.*/g
            },
            outSourceMap: "main.js.map"
        }))
        .pipe(gulp.dest('dist'));
});

API

You can also pass any uglify options listed here to modify UglifyJS's behavior.

License

MIT © Ilya MIkhailov

About

Small And Tiny uglify-js wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published