For front-end separation projects based on vue and springboot, how to configure configuration items for different environments at the front end?

now there is an internal project based on vue and springboot, asking how to describe configuration items in the webpack.*.conf.js file and config folder under the build folder in vue, so that the system can read different configuration items according to different files.
after the npm run build is executed in both the test environment and the production environment, the generated dist files are automatically placed in the springboot project.

Mar.11,2021
Menu