4.0.0 • Published 2 years ago

gulp-micro v4.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years 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

2 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

8 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

12 years ago