mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-06 06:18:38 -06:00
docs: add notes for multi-page apps on references to 'prefetch' plugin (#3444)
This commit is contained in:
committed by
Haoqun Jiang
parent
ecbccc6499
commit
fceede1ee0
@@ -39,6 +39,10 @@ By default, a Vue CLI app will automatically generate prefetch hints for all Jav
|
||||
|
||||
The hints are injected using [@vue/preload-webpack-plugin](https://github.com/vuejs/preload-webpack-plugin) and can be modified / deleted via `chainWebpack` as `config.plugin('prefetch')`.
|
||||
|
||||
::: tip Note for multi page setups
|
||||
When using a multipage setup, the plugin name above should be changed to match the structure 'prefetch-{pagename}', for example 'prefetch-app'.
|
||||
:::
|
||||
|
||||
Example:
|
||||
|
||||
``` js
|
||||
|
||||
Reference in New Issue
Block a user