Skip to content

Commit cfef0a6

Browse files
docs: remove addDependencyTo option from README
`addDependencyTo` had been deprecated and removed in a previous release. This commit simply clears it from the README.
1 parent fd8ca77 commit cfef0a6

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ __root__: Root folder path for include. Default `./`
3535

3636
__encoding__: Default `utf-8`
3737

38-
__addDependencyTo__: An object with addDependency() method, taking file path as an argument. Called whenever a file is included. Default `null`. You can use it for hot-reloading in webpack(posthtml-loader) like this:
39-
40-
```js
41-
posthtml: (webpack) => {
42-
return [
43-
require('posthtml-include')({ addDependencyTo: webpack })
44-
]
45-
}
46-
```
47-
4838
### Component options
4939
__locals__: Object containing any local variables that you want to be accessible inside the include component
5040

0 commit comments

Comments
 (0)