Skip to content

Commit 8552b3f

Browse files
committed
Add documentation and changelog
1 parent 5ebd132 commit 8552b3f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ postcssImport({
4141
})
4242
```
4343

44+
- Changed: support promise in `transform` option and `undefined` result will be skipped
45+
([#147](https://github.com/postcss/postcss-import/pull/147))
46+
4447
# 7.1.3 - 2015-11-05
4548

4649
- Fixed: ensure node 0.12 compatibility, round 2

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ _Note: nested `@import` will additionally benefit of the relative dirname of imp
109109
Type: `Function`
110110
Default: `null`
111111

112-
A function to transform the content of imported files. Take one argument (file content) & should return the modified content.
112+
A function to transform the content of imported files. Take one argument (file content) and should return the modified content or promise with it.
113+
`undefined` result will be skipped.
113114

114115
#### `plugins`
115116

0 commit comments

Comments
 (0)