Vue init simple static configuration js file packaging problem

Project uses vue init simple scaffolding project
question: how to configure a static file config.js, in the project this file is the global domain name, which is used to change the domain name online.
then, how can webpack be set up so that the config.js can be packaged into a dist file together, and then the garbled code will not be compressed?
how to configure it in webpack.config?
clipboard.png

clipboard.png

Nov.21,2021

webpack copywebpackplugin can read idebar/Sidebar.jsx" rel=" nofollow noreferrer "> link description

Menu