anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.25k stars 51 forks source link

readme: gulp example. #3

Closed anandthakker closed 9 years ago

alexander-akait commented 9 years ago

@anandthakker

gulp.src(src, {
    cwd: process.cwd(),
})
    .pipe(gulp.postcss([
        doiuse({
            browsers: [
                'ie >= 8',
                '> 1%'
            ],
            onFeatureUsage: function (usageInfo) {
                console.log(usageInfo.message);
            }
        })
    ]));
anandthakker commented 9 years ago

Thanks @evilebottnawi - I can copy and paste this in, or accept a PR if you'd like to get credit! :)

alexander-akait commented 9 years ago

@anandthakker you may copy and paste :)