Webpack 4.x how to package multi-page files (no vue react)

how does webpack 4.x package multi-page files? What if the project introduces some jquery plug-ins? The tutorial entry file I see is the index.js, under src and the main.js under dist. So did you pack all the js, css and so on together? Do you need to introduce this overall main.js on some pages that you don"t need? Isn"t that bloated? -sharp-sharp-sharp problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.03,2021

it is recommended that you read the document in its entirety: https://webpack.js.org/concep.

.

Multi-entry configuration is as follows:

module.exports = {
  entry: {
    app: './src/app.js',
    search: './src/search.js'
  },
  output: {
    filename: '[name].js',
    path: __dirname + '/dist'
  }
};

// writes to disk: ./dist/app.js, ./dist/search.js

I still suggest you Baidu. I think Baidu is much more nutritious than your question, because your question is a public problem. Many articles and tutorials on the Internet have been introduced in detail

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d8fa-2c398.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d8fa-2c398.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?