4.0.0 • Published 6 months ago

gulp-micro v4.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 months ago

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.

4.0.0

6 months ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

6 years ago

1.1.0

8 years ago

1.0.2

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago