mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +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
|
// Add prefetch code-splitted routes
|
||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
new PreloadWebpackPlugin({
|
new PreloadWebpackPlugin({
|
||||||
|
Loading…
Reference in New Issue
Block a user