mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-27 17:49:06 -06:00
docs: fix issues with prefetch override docs (#2010) [ci skip]
This commit is contained in:
@@ -51,7 +51,8 @@ module.exports = {
|
||||
// or:
|
||||
// modify its options:
|
||||
config.plugin('prefetch').tap(options => {
|
||||
options.fileBlackList.push([/myasyncRoute(.)+?\.js$/])
|
||||
options[0].fileBlacklist = options[0].fileBlacklist || []
|
||||
options[0].fileBlacklist.push([/myasyncRoute(.)+?\.js$/])
|
||||
return options
|
||||
})
|
||||
}
|
||||
|
||||
@@ -51,7 +51,8 @@ module.exports = {
|
||||
// 或者
|
||||
// 修改它的选项:
|
||||
config.plugin('prefetch').tap(options => {
|
||||
options.fileBlackList.push([/myasyncRoute(.)+?\.js$/])
|
||||
options[0].fileBlacklist = options[0].fileBlacklist || []
|
||||
options[0].fileBlacklist.push([/myasyncRoute(.)+?\.js$/])
|
||||
return options
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user