Skip to content

Commit b19136c

Browse files
committed
docs: clarify loader execution order and update example to use postcss-loader and sass-loader
1 parent d128213 commit b19136c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/guides/asset-management.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ For example:
104104
use: ["postcss-loader", "sass-loader"];
105105
```
106106

107-
Here, `css-loader` runs first and processes the CSS, followed by `style-loader`, which injects the result into the DOM.
107+
Here, `sass-loader` runs first and compiles Sass into CSS, followed by `postcss-loader`, which applies further transformations.
108108

109-
So even though `style-loader` appears before `css-loader` in the array, the execution happens in reverse order.
109+
So even though `postcss-loader` appears before `sass-loader` in the array, the execution happens in reverse order.
110110

111111
If this order is not maintained, webpack may throw errors.
112112

0 commit comments

Comments
 (0)