Skip to content

Commit dbb2f60

Browse files
committed
Add docs for dependency message
1 parent 6e9742f commit dbb2f60

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,20 @@ postcss()
228228
})
229229
```
230230

231+
## `dependency` Message Support
232+
233+
`postcss-import` adds a message to `result.messages` for each `@import`. Messages are in the following format:
234+
235+
```
236+
{
237+
type: 'dependency',
238+
file: absoluteFilePath,
239+
parent: fileContainingTheImport
240+
}
241+
```
242+
243+
This is mainly for use by postcss runners that implement file watching.
244+
231245
---
232246

233247
## CONTRIBUTING

0 commit comments

Comments
 (0)