docs: chainWebpack & merge example of modifying loader options (#899)

This commit is contained in:
Phil Wolstenholme
2018-02-28 13:03:01 +00:00
committed by Evan You
parent 53a1fd1f37
commit e875d2cb11

View File

@@ -59,6 +59,25 @@ module.exports = {
}
```
#### Modifying Loader Options
``` js
// vue.config.js
module.exports = {
chainWebpack: config => {
config.module
.rule('scss')
.use('sass-loader')
.tap(options =>
merge(options, {
includePaths: [path.resolve(__dirname, 'node_modules')],
})
)
}
}
```
#### Modifying Plugin Options
``` js