gulp-uglifyes
v0.2.1
Published
gulp plugin, compressed es6+ code.
Downloads
3,053
Maintainers
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);