Skip to content

Commit e910e9c

Browse files
authored
docs: add note about loader incompatible with webpack 4 (#6266)
1 parent 89f88ef commit e910e9c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/guide/css.md

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ npm install -D less-loader less
2121
npm install -D stylus-loader stylus
2222
```
2323

24+
::: tip Note on webpack 4
25+
When using `webpack` version 4, the default in Vue CLI 4, you need to make sure your loaders are compatible with it. Otherwise you will get errors about confliciting peer dependencies. In this case you can use an older version of the loader that is still compatible with `webpack` 4.
26+
27+
``` bash
28+
# Sass
29+
npm install -D sass-loader@^10 sass
30+
```
31+
:::
32+
2433
Then you can import the corresponding file types, or use them in `*.vue` files with:
2534

2635
``` vue

0 commit comments

Comments
 (0)