当前位置: 代码迷 >> 综合 >> vue-cli3配置多页面
  详细解决方案

vue-cli3配置多页面

热度:85   发布时间:2024-03-08 06:21:57.0
module.exports = {// 我配置完成 和 文件夹 匹配好// 相当于 写了两套项目 vue代码// pages 配置 多页面入口 index  和ui// 配置和 你的文件夹匹配 两套 文件pages: {index: {// page 的入口entry: "src/views/index/main.js",// 模板来源template: "public/index.html",// 在 dist/index.html 的输出filename: "index.html",// 当使用 title 选项时,// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>title: "Index Page"},ui: {// page 的入口entry: "src/views/ui/main.js",// 模板来源template: "public/ui.html",// 在 dist/ui.html 的输出filename: "ui.html",// 当使用 title 选项时,// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>title: "ui Page"}// 。。。。}
};