// webpack.config.js
module.exports = {
entry: {
"name1111": "./js/file1.js",
"sobaka912": "./js/file2.js",
},
output: {
path: path.join(__dirname, './dist/js'),
filename: "[name].js"
},
};
на выходе получите
/dist/js/name1111.js
/dist/js/sobaka912.js