All Projects → sindresorhus → gulp-micro

sindresorhus / gulp-micro

Licence: MIT license
Ensure your micro-lib stays micro

Programming Languages

javascript
137047 projects - #8 most used programming language

Projects that are alternatives of or similar to gulp-micro

Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (+806.67%)
Mutual labels:  gulp-plugin
Gulp Webp
Convert images to WebP
Stars: ✭ 187 (+1146.67%)
Mutual labels:  gulp-plugin
gulp-jsvalidate
Validate JavaScript code and report possible syntax errors
Stars: ✭ 23 (+53.33%)
Mutual labels:  gulp-plugin
Gulp Stylelint
Gulp plugin for running Stylelint results through various reporters.
Stars: ✭ 149 (+893.33%)
Mutual labels:  gulp-plugin
Gulp Traceur
Traceur is a JavaScript.next to JavaScript-of-today compiler
Stars: ✭ 172 (+1046.67%)
Mutual labels:  gulp-plugin
Gulp Debug
Debug Vinyl file streams to see what files are run through your Gulp pipeline
Stars: ✭ 223 (+1386.67%)
Mutual labels:  gulp-plugin
Gulp Bro
👊 gulp + browserify + incremental build, done right.
Stars: ✭ 119 (+693.33%)
Mutual labels:  gulp-plugin
gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
Stars: ✭ 49 (+226.67%)
Mutual labels:  gulp-plugin
Gulp Compass
Compass plugin for gulp
Stars: ✭ 177 (+1080%)
Mutual labels:  gulp-plugin
gulp-px2rem
This is a gulp plugin for node-px2rem.
Stars: ✭ 19 (+26.67%)
Mutual labels:  gulp-plugin
Gulp Imagemin
Minify PNG, JPEG, GIF and SVG images
Stars: ✭ 1,860 (+12300%)
Mutual labels:  gulp-plugin
Gulp Markdown
Markdown to HTML
Stars: ✭ 167 (+1013.33%)
Mutual labels:  gulp-plugin
Gulp Size
Display the size of your project
Stars: ✭ 225 (+1400%)
Mutual labels:  gulp-plugin
Gulp Nunjucks
Precompile Nunjucks templates
Stars: ✭ 143 (+853.33%)
Mutual labels:  gulp-plugin
gulp-recess
[DEPRECATED] Lint CSS and LESS with RECESS
Stars: ✭ 42 (+180%)
Mutual labels:  gulp-plugin
Gulp Rev
Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
Stars: ✭ 1,540 (+10166.67%)
Mutual labels:  gulp-plugin
Gulp Html Replace
Replace build blocks in HTML. Like useref but done right.
Stars: ✭ 222 (+1380%)
Mutual labels:  gulp-plugin
gulp-iife
A Gulp plugin for wrapping JavaScript code in IIFEs.
Stars: ✭ 39 (+160%)
Mutual labels:  gulp-plugin
gulp-revert-path
Revert the previous `file.path` change
Stars: ✭ 18 (+20%)
Mutual labels:  gulp-plugin
Gulp Strip Debug
Strip console, alert, and debugger statements from JavaScript code
Stars: ✭ 242 (+1513.33%)
Mutual labels:  gulp-plugin

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

const gulp = require('gulp');
const micro = require('gulp-micro');

exports.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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected]