You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/concepts/loaders.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ contributors:
5
5
- manekinekko
6
6
- ev1stensberg
7
7
- SpaceK33z
8
+
- gangachris
8
9
---
9
10
10
11
Loaders are transformations that are applied on a resource file of your application. They are functions (running in Node.js) that take the source of a resource file as the parameter and return the new source.
@@ -13,7 +14,7 @@ For example, you can use loaders to tell webpack to load a CSS file or to conver
13
14
14
15
## Loader Features
15
16
16
-
* Loaders can be chained. They are applied in a pipeline to the resource. A chain of loaders are compiled chronologically. The first loader in a chain of loaders returns an value to the next and at the end loader, webpack expects JavaScript to be returned.
17
+
* Loaders can be chained. They are applied in a pipeline to the resource. A chain of loaders are compiled chronologically. The first loader in a chain of loaders returns a value to the next and at the end loader, webpack expects JavaScript to be returned.
17
18
* Loaders can be synchronous or asynchronous.
18
19
* Loaders run in Node.js and can do everything that’s possible there.
19
20
* Loaders accept query parameters. This can be used to pass configuration to the loader.
@@ -22,7 +23,7 @@ For example, you can use loaders to tell webpack to load a CSS file or to conver
22
23
* Plugins can give loaders more features.
23
24
* Loaders can emit additional arbitrary files.
24
25
25
-
Loaders allows more power in the JavaScript ecosystem through preprocessing
26
+
Loaders allows more power in the JavaScript ecosystem through preprocessing
26
27
functions (loaders). Users now have more flexibility to include fine-grained logic such as compression, packaging, language translations and [more](/loaders).
0 commit comments