Skip to content

Commit 3957ad9

Browse files
anikethsahamontogeek
authored andcommitted
docs(api): Changed to the corrected loader for API (#3360)
1 parent 9f4ceff commit 3957ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/api/loaders.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ addDependency(file: string)
402402
dependency(file: string) // shortcut
403403
```
404404

405-
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.
405+
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.
406406

407407

408408
### `this.addContextDependency`

0 commit comments

Comments
 (0)