Closed menelikw closed 6 years ago
So i freshly installed this plugin and got the above error...
Running gulp v4 (same issue in gulp 3)
Gulp task: (plugins loaded with gulp-load-plugin')
gulp-load-plugin
gulp.task('critical-split', () => gulp.src([`${src.styles}/*.css`, '!**/*-critical.css']) .pipe($.postcss($.postcssCriticalSplit())) );
Any ideas?
EDIT: Oh i found the issue, postcss plugins just needed to be passed in as an array e.g.
gulp.task('critical-split', () => gulp.src([`${src.styles}/*.css`, '!**/*-critical.css']) .pipe($.postcss([ $.postcssCriticalSplit() ])) );
So i freshly installed this plugin and got the above error...
Running gulp v4 (same issue in gulp 3)
Gulp task: (plugins loaded with
gulp-load-plugin
')Any ideas?
EDIT: Oh i found the issue, postcss plugins just needed to be passed in as an array e.g.