Webpack Entry Point Names
Entry points can be given names. To do this, make the entry setting an object. The keys of the object will be the names of the entry points. Named entry points will be collected into separate build files.
Let's try it. In the following example, after building, in the dist folder we will have two files: file1.js and file2.js.
export default {
entry: {
file1: './src/test1.js',
file2: './src/test2.js'
},
};
Make three entry points. Collect them into separate files.