Webpack Exit Point
The output point is controlled by the output setting. This setting is an object. In this setting, you can specify the name of the build file using the filename switch:
export default {
entry: './src/index.js',
output: {
filename: 'build.js',
}
};
As a result, the assembly will still be located in the dist folder, but in the file we specified.
Make your build go into the bundle.js file.