ObjectThis configuration option only applies to server-side routing and can customize the access route of application entries.
The key of the object is the name of the current application entry, and the value can be a string | Array<string>.
When the value type is string, the current value represents the route path for accessing the entry.
Multiple access routes can also be set for the entry through Array<string>:
At this time, the page-a entry can be accessed through both the /a and /b routes.
After executing the dev command, you can view two route records for the page-a entry in dist/route.json:
Response headers can be set by configuring the resHeaders of the entry:
This configuration takes effect in both the production and development environments, and different response headers can be set according to the NODE_ENV to distinguish between environments. However, if you only need to set response headers in the development environment, it is recommended to use tools.devServer.headers.