mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-29 02:28:31 -06:00
docs: chainWebpack & merge example of modifying loader options (#899)
This commit is contained in:
committed by
Evan You
parent
53a1fd1f37
commit
e875d2cb11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user