From aa7caa8a5ecd4963e151dac49c3155c966620825 Mon Sep 17 00:00:00 2001 From: Wahid Rizka Fathurrohman Date: Wed, 30 Sep 2026 08:38:58 +0700 Subject: [PATCH] docs(README): fix the gulp example The example required gulp-postcssrc, which is not on npm, had a leftover ")" that made it a syntax error, and did not return the stream, so gulp stopped with "Did you forget to signal async completion?". Use gulp-postcss, which loads postcss.config.js through postcss-load-config, and return the stream. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c1f2ccf..0723aab 100644 --- a/README.md +++ b/README.md @@ -369,13 +369,13 @@ postcssrc(ctx).then(({ plugins, options }) => { ```js const { task, src, dest, series, watch } = require('gulp') -const postcss = require('gulp-postcssrc') +const postcss = require('gulp-postcss') const css = () => { - src('src/*.css') + return src('src/*.css') .pipe(postcss()) .pipe(dest('dest')) -}) +} task('watch', () => { watch(['src/*.css', 'postcss.config.js'], css)