mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
prefetch only in production
This commit is contained in:
parent
fd966485ee
commit
996613ce8b
@ -64,7 +64,7 @@ export default function () {
|
||||
})
|
||||
])
|
||||
|
||||
if (this.options.performance.prefetch === true) {
|
||||
if (!this.dev && this.options.performance.prefetch === true) {
|
||||
// Add prefetch code-splitted routes
|
||||
config.plugins.push(
|
||||
new PreloadWebpackPlugin({
|
||||
|
Loading…
Reference in New Issue
Block a user