每页Vuejs MPA和indexPath

问题描述

vue.config.js中-可以使用index.html

设置indexPath的输出位置和文件名

例如vue.config.js

module.exports = {
    indexPath: "../backend/api/templates/base.html"
}

会将index.html文件输出到名为backend/api/templates的{​​{1}}。

我想构建一个生成多个html的MPA。

通过:

"base.html"

但是我只能将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",filename: "about.html","about"] } },outputDir: "backend/api/static/dist",assetsDir: "static",indexPath: "../backend/api/templates/base-vue.html",... 重命名为index.html

我希望能够将base-vue.html输出到具有特定名称的特定文件夹中。 这可能吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)