Skip to content

Instantly share code, notes, and snippets.

@roparz roparz/check-css.js
Last active Aug 29, 2015

Embed
What would you like to do?
gulp-sniffer - check css exemples
var gulp = require('gulp'),
sniffer = require('gulp-sniffer');
var sniffs = {
'Use lighter|normal|bold instead of 100-900 for font-weight': function(content) {
return content.match(/font-weight: \d+/);
}
}
gulp.task('check-css', function() {
gulp.src('src/**/*.css')
.pipe(sniffer(sniffs))
.pipe(gulp.dest('dist/'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.