Skip to content

Commit ce0774d

Browse files
committed
docs: changed to the corrected loader for api
1 parent 4c233fa commit ce0774d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/api/loaders.md

Lines changed: 1 addition & 1 deletion
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)