Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ensure your micro-lib stays micro
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
index.js
license
package.json
readme.md
screenshot.png
test.js

readme.md

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

Something went wrong with that request. Please try again.