I'm using vue-cli4
for multi-page, and I want to be able to use indexPath
in pages
config. How to do that?
Asked
Active
Viewed 245 times
1 Answers
1
I personally use the filename key in pages object.
module.exports = {
outputDir: "custom_dist",
pages: {
admin: {
entry: "src/admin/main.js",
template: "src/admin/template.html",
filename: "admin/index.html", // >> custom_dist/admin/index.html
// filename: "../admin_dist/index.html", // >> admin_dist/index.html
}
},
}

AiAbdrahim
- 309
- 2
- 13
-
This is it! I found it in the documentation `https://cli.vuejs.org/config/#pages` ,I was careless before,Thanks! – CQ P Feb 20 '21 at 00:42