Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e910e9c

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

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎docs/guide/css.md

Copy file name to clipboardExpand all lines: docs/guide/css.md
+9Lines changed: 9 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.