All Projects → sindresorhus → gulp-micro

sindresorhus / gulp-micro

Licence: MIT license
Ensure your micro-lib stays micro

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gulp-micro

gulp-sort
Sort files in stream by path or any custom sort comparator
Stars: ✭ 22 (+46.67%)
Mutual labels:  gulp-plugin
gulp-merge-json
A gulp plugin to merge JSON & JSON5 files into one file
Stars: ✭ 35 (+133.33%)
Mutual labels:  gulp-plugin
gulp-jsvalidate
Validate JavaScript code and report possible syntax errors
Stars: ✭ 23 (+53.33%)
Mutual labels:  gulp-plugin
gulp-myth
[DEPRECATED] Myth - Postprocessor that polyfills CSS
Stars: ✭ 39 (+160%)
Mutual labels:  gulp-plugin
gulp-es6-transpiler
[DEPRECATED] Transpile ES2015 to ES5
Stars: ✭ 47 (+213.33%)
Mutual labels:  gulp-plugin
gulp-qunit
Run QUnit unit tests in a headless PhantomJS instance.
Stars: ✭ 24 (+60%)
Mutual labels:  gulp-plugin
gulp-spsync-creds
Gulp plugin for synchronizing local files with a SharePoint library via user credentials
Stars: ✭ 12 (-20%)
Mutual labels:  gulp-plugin
gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
Stars: ✭ 49 (+226.67%)
Mutual labels:  gulp-plugin
gulp-rework
Preprocess CSS with Rework
Stars: ✭ 30 (+100%)
Mutual labels:  gulp-plugin
gulp-px2rem
This is a gulp plugin for node-px2rem.
Stars: ✭ 19 (+26.67%)
Mutual labels:  gulp-plugin
gulp-cleanhtml
remove unneeded whitespaces, line-breaks, comments, etc from the HTML.
Stars: ✭ 19 (+26.67%)
Mutual labels:  gulp-plugin
gulp-html
Gulp plugin for HTML validation, using the official Nu Html Checker (v.Nu)
Stars: ✭ 70 (+366.67%)
Mutual labels:  gulp-plugin
gulp-strip-json-comments
Strip comments from JSON. Lets you use comments in your JSON files!
Stars: ✭ 25 (+66.67%)
Mutual labels:  gulp-plugin
gulp-cssbeautify
Reindent and reformat CSS
Stars: ✭ 18 (+20%)
Mutual labels:  gulp-plugin
gulp-recess
[DEPRECATED] Lint CSS and LESS with RECESS
Stars: ✭ 42 (+180%)
Mutual labels:  gulp-plugin
gulp-xo
Validate files with XO
Stars: ✭ 37 (+146.67%)
Mutual labels:  gulp-plugin
gulp-ava
Run AVA tests
Stars: ✭ 56 (+273.33%)
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-esbuild
gulp plugin for esbuild bundler
Stars: ✭ 39 (+160%)
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].