I am working on a multi-page app where I want certain pages to only show up in my development environment. Here's how my vue.config.js looks:
module.exports = {
productionSourceMap: false,
pages: {
index: "src/main.js",
admin: {
entry: "src/main-admin.js",
template: "public/index.html",
filename: "admin"
}
}
};
I specifically want the index page to be included in my production build, but I need to exclude the admin page from it. Is there a way to set up an environment-dependent configuration in vue.config.js, or should I create multiple vue.config.js files for each environment?