Skip to content

Add notes for multi-page apps on references to 'prefetch' plugin #3444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from Mar 20, 2019
Merged

Add notes for multi-page apps on references to 'prefetch' plugin #3444

merged 5 commits into from Mar 20, 2019

Conversation

ghost
Copy link

@ghost ghost commented Feb 10, 2019

I have edited the code examples to reference the plugin by the name 'prefetch-app', as this seems to be the correct name the webpack config requires from inspecting the generated config. I have tested and can confirm this works with the example that deletes the plugin altogether, but not the blacklisting example.

I have edited the code examples to reference the plugin by the name 'prefetch-app', as this seems to be the correct name the webpack config requires from inspecting the generated config. I have tested and can confirm this works with the example that deletes the plugin altogether, but not the blacklisting example.
Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's prefetch by default and prefetch-${pagename} in a multi-page setup.

@ghost
Copy link
Author

ghost commented Feb 21, 2019

Ah ok that makes sense. Shall I just cancel the pull request then or do you think it is worth adding a comment to that effect somewhere in the docs?

Updated file to show standard plugin name again, and a not for when used in multi-page setups
As per request, changed to tip container markdown instead
Added a line break to the tip markdown
Changed to appear on the first line as requested
@haoqunjiang haoqunjiang changed the title Change references to 'prefetch' plugin. Add notes for multi-page apps on references to 'prefetch' plugin Mar 20, 2019
@haoqunjiang haoqunjiang merged commit fceede1 into vuejs:docs Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants