Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('criticalcss', function (cb) {
critical.generateInline({
base: './build/',
src: 'index.html',
styleTarget: './assets/combined.css',
htmlTarget: 'index.html',
width: 960,
height: 600,
minify: true
}, cb.bind(cb));
});