Skip to content

Commit

Permalink
docs(api): Changed to the corrected loader for API (#3360)
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha authored and montogeek committed Nov 16, 2019
1 parent 9f4ceff commit 3957ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/api/loaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ addDependency(file: string)
dependency(file: string) // shortcut
```

Add a file as dependency of the loader result in order to make them watchable. For example, [`html-loader`](https://github.com/webpack-contrib/html-loader) uses this technique as it finds `src` and `src-set` attributes. Then, it sets the URLs for those attributes as dependencies of the html file that is parsed.
Add a file as dependency of the loader result in order to make them watchable. For example, [`sass-loader`](https://github.com/webpack-contrib/sass-loader), [`less-loader`](https://github.com/webpack-contrib/less-loader) uses this to recompile whenever any imported `css` file changes.


### `this.addContextDependency`
Expand Down

0 comments on commit 3957ad9

Please sign in to comment.