gulp-micro

Ensure your micro-lib stays micro

npm install gulp-micro
6 downloads in the last week
8 downloads in the last month

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

Install with npm

npm install --save-dev gulp-micro

Example

var gulp = require('gulp');
var micro = require('gulp-micro');

gulp.task('default', function () {
    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

npm loves you