We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.0.0-beta.3
github.com
win10
1.安装依赖npm i 2.执行打包npm build 3.查看dist
index.html中生成preload和prefetch
index.html中没有生成preload和prefetch
The text was updated successfully, but these errors were encountered:
As indicated in the Notes in the source code : (@vue/cli-service/lib/config/app.js:197)
Sorry, something went wrong.
const { defineConfig } = require("@vue/cli-service");
const PreloadPlugin = require("@vue/preload-webpack-plugin");
module.exports = defineConfig({ transpileDependencies: true, chainWebpack: (config) => { config.plugin("preload").use(PreloadPlugin, [ { rel: "preload", include: "initial", fileBlacklist: [/.map$/, /hot-update.js$/], }, ]);
config.plugin("prefetch").use(PreloadPlugin, [ { rel: "prefetch", include: "asyncChunks", }, ]);
console.log("config", config); }, });
No branches or pull requests
Version
5.0.0-beta.3
Reproduction link
github.com
Environment info
Steps to reproduce
1.安装依赖npm i
2.执行打包npm build
3.查看dist
What is expected?
index.html中生成preload和prefetch
What is actually happening?
index.html中没有生成preload和prefetch
The text was updated successfully, but these errors were encountered: