gulp-lzmajs
v1.2.1
Published
Minify files with LZMA-JS.
Downloads
15
Maintainers
Readme
gulp-lzmajs
Minify JavaScript with LZMA-JS.
Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-lzmajs
Usage
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
lzmajs = require('gulp-lzmajs');
gulp.task('compress', function() {
return gulp.src('lib/*.js')
.pipe(concat('all.min.js'))
.pipe(uglify())
.pipe(lzmajs(9))
.pipe(gulp.dest('dist'));
});
Errors
gulp-lzmajs
emits an 'error' event if it is unable to minify a specific file.
Wherever popssible, the PluginError object will contain the following properties:
fileName
lineNumber
message
To handle errors across your entire pipeline, see the gulp documentation.