gulp-micro

4.0.0 • Public • Published

gulp-micro

Ensure your micro-lib stays micro

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

Install

npm install --save-dev gulp-micro

Usage

import gulp from 'gulp';
import micro from 'gulp-micro';

export default () => (
	gulp.src('src/app.js')
		.pipe(micro({limit: 1000}))
		.pipe(gulp.dest('dist'))
);

API

micro(options?)

options

Type: object

limit

Required
Type: number

File size limit in bytes.

Tip

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

/gulp-micro/

    Package Sidebar

    Install

    npm i gulp-micro

    Weekly Downloads

    11

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus