Const path=the require (" path ")
The module. The export={
Entry: {
Index: './SRC/index. Js',
Search: 'the./SRC/search. Js'
},
Output: {
Filename: '[name]. Js,
Path: __dirname + '/dist'
},
Mode: 'production'
Wrote a multiple entry files why webpack} - mode=. After the production output of only one main js