Package Exports
- gulp-uglify-es
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-uglify-es) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-ts-package
gulp stream to uglify with 'uglify-es' (es6 supported).
Install
npm install --save-dev gulp-uglify-es
Usage
gulpfile.js
let gulp = require("gulp");
let rename = require("gulp-rename");
let uglify = require('gulp-uglify-es').default;
gulp.task("uglify", function () {
return gulp.src("lib/bundle.js")
.pipe(uglify(/* options */))
.pipe(rename("bundle.min.js"))
.pipe(gulp.dest("lib/"));
});
For documentation about the options-object, See Uglify API Reference.