Skip to content

Prefetch links presents in html even if prefetch plugin deleted #2616

@KleinMaximus

Description

@KleinMaximus

Version

3.0.4

Node and OS info

Node 10.10.0 / yarn 1.9.4

Steps to reproduce

// Resulting VUE config
module.exports = {
  chainWebpack: (config) => {
    config.plugins.delete('prefetch');
  },
};

What is expected?

No any <link rel="prefetch" href="/js/XXX.js"> of async components in html head section.

What is actually happening?

Tags <link rel="prefetch" href="/js/XXX.js"> present in head.

Notes

This code disappears from the configuration (vue inspect):

new PreloadPlugin({
  rel: 'prefetch',
  include: 'asyncChunks'
}),

The strange thing is that even in the absence of a plugin in vue inspect, <link> tags still appear in html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions