Skip to content

Commit e875d2c

Browse files
Phil Wolstenholmeyyx990803
Phil Wolstenholme
authored andcommitted
docs: chainWebpack & merge example of modifying loader options (#899)
1 parent 53a1fd1 commit e875d2c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/webpack.md

+19
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,25 @@ module.exports = {
5959
}
6060
```
6161

62+
#### Modifying Loader Options
63+
64+
``` js
65+
// vue.config.js
66+
module.exports = {
67+
chainWebpack: config => {
68+
config.module
69+
.rule('scss')
70+
.use('sass-loader')
71+
.tap(options =>
72+
merge(options, {
73+
includePaths: [path.resolve(__dirname, 'node_modules')],
74+
})
75+
)
76+
}
77+
}
78+
```
79+
80+
6281
#### Modifying Plugin Options
6382

6483
``` js

0 commit comments

Comments
 (0)