Skip to content

Commit

Permalink
docs: fix prefetch custom config snippet (vuejs#2670) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreBonaventure authored and haoqunjiang committed Oct 12, 2018
1 parent 7177097 commit 9757f14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guide/html-and-static-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
// modify its options:
config.plugin('prefetch').tap(options => {
options[0].fileBlacklist = options[0].fileBlacklist || []
options[0].fileBlacklist.push([/myasyncRoute(.)+?\.js$/])
options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
return options
})
}
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/guide/html-and-static-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
// изменяем его настройки:
config.plugin('prefetch').tap(options => {
options[0].fileBlacklist = options[0].fileBlacklist || []
options[0].fileBlacklist.push([/myasyncRoute(.)+?\.js$/])
options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
return options
})
}
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/html-and-static-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
// 修改它的选项:
config.plugin('prefetch').tap(options => {
options[0].fileBlacklist = options[0].fileBlacklist || []
options[0].fileBlacklist.push([/myasyncRoute(.)+?\.js$/])
options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
return options
})
}
Expand Down

0 comments on commit 9757f14

Please sign in to comment.