diff --git a/docs/guide/html-and-static-assets.md b/docs/guide/html-and-static-assets.md index 5fd982feb7..08616e6bec 100644 --- a/docs/guide/html-and-static-assets.md +++ b/docs/guide/html-and-static-assets.md @@ -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 }) } diff --git a/docs/ru/guide/html-and-static-assets.md b/docs/ru/guide/html-and-static-assets.md index 6654bc7838..5ee74efa37 100644 --- a/docs/ru/guide/html-and-static-assets.md +++ b/docs/ru/guide/html-and-static-assets.md @@ -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 }) } diff --git a/docs/zh/guide/html-and-static-assets.md b/docs/zh/guide/html-and-static-assets.md index f9a75218f6..e1a7d2be02 100644 --- a/docs/zh/guide/html-and-static-assets.md +++ b/docs/zh/guide/html-and-static-assets.md @@ -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 }) }