gulp-uglifyes

gulp plugin, compressed es6+ code.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-uglifyes
0.2.16 years ago7 years agoMinified + gzip package size for gulp-uglifyes in KB

Readme

gulp-uglifyes
Please use terser / gulp-terser instead of uglify-es / gulp-uglifyes.

Gulp plugin, compressed es6+ code.

Install

$ npm install gulp-uglifyes --save-dev
or
$ yarn add gulp-uglifyes --dev

How to use

const gulp = require('gulp');
const uglify = require('gulp-uglifyes');

function es(){
  return gulp.src('./src/index.js')
    .pipe(uglify())
    .pipe(gulp.dest('./build'));
}

gulp.task('default', es);

Options

Uglify-es configuration can be viewed https://github.com/mishoo/UglifyJS2/tree/harmony#minify-options.
const gulp = require('gulp');
const uglify = require('gulp-uglifyes');

function es(){
  return gulp.src('./src/index.js')
    .pipe(uglify())
    .pipe(gulp.dest('./build'));
}

gulp.task('default', es);