Skip to content

Commit

Permalink
Add docs for dependency message
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Nov 18, 2016
1 parent 6e9742f commit dbb2f60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,20 @@ postcss()
})
```

## `dependency` Message Support

`postcss-import` adds a message to `result.messages` for each `@import`. Messages are in the following format:

```
{
type: 'dependency',
file: absoluteFilePath,
parent: fileContainingTheImport
}
```

This is mainly for use by postcss runners that implement file watching.

---

## CONTRIBUTING
Expand Down

0 comments on commit dbb2f60

Please sign in to comment.