Currently, I am utilizing Vue with webpack to construct a Multi-Page Application and have the following setup:
pages: {
index: {
entry: ...
template: ...
...
}
page1: {
entry: ...
template: ...
...
}
}
I am looking to add a debug page if the environment is not set to production. What is the most effective way to achieve this? While I am aware that it is possible to utilize multiple configuration files, I am hoping for a better solution than simply copying the code and making minor modifications. I prefer to keep all future settings in one place rather than having them spread across two separate files.
Thank you.