docs: fix issues with prefetch override docs (#2010) [ci skip]

This commit is contained in:
Matt Isenhower
2018-08-05 19:12:15 -07:00
committed by Evan You
parent 5838096aa8
commit e21c49adb4
2 changed files with 4 additions and 2 deletions

View File

@@ -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
})
}

View File

@@ -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
})
}