prefetch only in production

This commit is contained in:
Sébastien Chopin 2017-02-23 13:43:57 +00:00
parent fd966485ee
commit 996613ce8b

View File

@ -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({