node package manager

gulp-micro

gulp-micro Build Status

Ensure your micro-lib stays micro

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

Install

$ npm install --save-dev gulp-micro

Usage

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'));
});

Options

limit

Required
Type: number

File size limit in bytes.

Tip

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

License

MIT © Sindre Sorhus