in - 可以设置使用vue.config.js
的输出位置和文件名index.html
indexPath
例如vue.config.js
module.exports = {
indexPath: "../backend/api/templates/base.html"
}
将index.html
文件输出到backend/api/templates
named "base.html"
。
我想构建一个生成多个 html 的 MPA。
通过:
module.exports = {
pages: {
index: {
entry: "./src/pages/home/main.ts",
template: "public/index.html",
filename: "index.html",
chunks: ["chunk-vendors", "index"]
},
about: {
entry: "./src/pages/about/main.ts",
template: "public/index.html",
filename: "about.html",
chunks: ["chunk-vendors", "about"]
}
},
outputDir: "backend/api/static/dist",
assetsDir: "static",
indexPath: "../backend/api/templates/base-vue.html",
...
但是我只能index.html
重命名为base-vue.html
.
我希望能够将about.html
输出输出到具有特定名称的特定文件夹中。
这可能吗?