@cjser/gulp-micro
v4.0.0-cjser.2
Published
Ensure your micro-lib stays micro
Maintainers
Readme
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-microUsage
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.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/gulp-micro
