Skip to content

Commit fceede1

Browse files
Ben-Galliennehaoqunjiang
authored andcommitted
docs: add notes for multi-page apps on references to 'prefetch' plugin (#3444)
1 parent ecbccc6 commit fceede1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/html-and-static-assets.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ By default, a Vue CLI app will automatically generate prefetch hints for all Jav
3939

4040
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')`.
4141

42+
::: tip Note for multi page setups
43+
When using a multipage setup, the plugin name above should be changed to match the structure 'prefetch-{pagename}', for example 'prefetch-app'.
44+
:::
45+
4246
Example:
4347

4448
``` js

0 commit comments

Comments
 (0)