Skip to content

Commit 65cb119

Browse files
committed
Fix docs about using a function in postcss.config.js
1 parent c1c8055 commit 65cb119

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ gulp.task('css', function () {
193193
```
194194

195195
```js
196+
// postcss.config.js or .postcssrc.js
196197
module.exports = function (ctx) {
197198
var file = ctx.file;
198-
var options = ctx.options;
199+
var options = ctx;
199200
return {
200201
parser: file.extname === '.sss' ? : 'sugarss' : false,
201202
plugins: {

0 commit comments

Comments
 (0)