gulp-micro

Ensure your micro-lib stays micro

gulp-micro

Ensure your micro-lib stays micro

Useful when paired with TravisCI to verify that all pull-requests are within the size limit.

$ npm install --save-dev gulp-micro
var gulp = require('gulp');
var micro = require('gulp-micro');
 
gulp.task('default', function () {
    return gulp.src('src/app.js')
        .pipe(micro({limit: 1000}))
        .pipe(gulp.dest('dist'));
});

Required
Type: number

File size limit in bytes.

Place gulp-gzip before this plugin to limit the gzipped size.

MIT © Sindre Sorhus