Package Exports
- gulp-minifier
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-minifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-minifier
Minify HTML, JS, CSS with html-minifier, uglify-es, clean-css.
For example:
var minify = require('gulp-minifier');
gulp.task('example', function() {
return gulp.src('example/src/**/*').pipe(minify({
minify: true,
minifyHTML: {
collapseWhitespace: true,
conservativeCollapse: true,
},
minifyJS: {
sourceMap: true
},
minifyCSS: true,
getKeptComment: function (content, filePath) {
var m = content.match(/\/\*![\s\S]*?\*\//img);
return m && m.join('\n') + '\n' || '';
}
})).pipe(gulp.dest('example/dest'));
});