From 9757f144e68ff67cce7c7656096119ee9a0db4ab Mon Sep 17 00:00:00 2001 From: Alexandre Bonaventure Geissmann Date: Fri, 12 Oct 2018 06:11:44 -0400 Subject: [PATCH] docs: fix prefetch custom config snippet (#2670) [ci skip] --- docs/guide/html-and-static-assets.md | 2 +- docs/ru/guide/html-and-static-assets.md | 2 +- docs/zh/guide/html-and-static-assets.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 }) }