gulp-rb-validate-minified
v1.0.0
Published
Gulp plugin to check if file is minified correctly according to Web Frontend Guidelines
Downloads
4
Readme
#Installation
Install package with NPM and add it to your development dependencies:
npm install gulp-rb-validate-minified --save-dev
#Usage
var rbminified = require('gulp-rb-validate-minified');
gulp.task('rb-validate', function () {
gulp.src('dist/**/*.{css,js}')
.pipe(rbminified());
});
With Parameter
var rbpackage = require('gulp-rb-validate-minified');
gulp.task('rb-validate', function () {
gulp.src('dist/**/*.{css,js}')
.pipe(rbminified({
exitOnError: true
});
});
#Parameters
exitOnError: Boolean (Default: false)
Exit with code 1 if an error with obligation level red is found.