The webpack docks have:
module.exports = { entry: { app: './src/app.js', search: './src/search.js' }, output: { filename: '[name].js', path: __dirname + '/dist' } }; It turns out that in the entry you can specify the path to any file in src.
Question: how is it right now to specify in the webpack 4 output paths to different folders, for example, save app.js to / dist / app /, and search.js to / dist / search /?