package.json: is used to configure project dependencies,
webpack.config.js: Configures how to compile.
package.json: That is, the basic information of the current project (name, version number), and the information about third parties that the project needs to depend on. You can refer to Teacher Ruan’s introduction to package.json
webpack.config.js: It is usually used to set a series of compilation information such as project entry parameters, output files, module selection, compiler settings, etc. You can also refer to online information for this
Thank you for the invitation:
To put it simply:
package.json
: is used to configure project dependencies,webpack.config.js
: Configures how to compile.package.json
: That is, the basic information of the current project (name, version number), and the information about third parties that the project needs to depend on. You can refer to Teacher Ruan’s introduction to package.jsonwebpack.config.js
: It is usually used to set a series of compilation information such as project entry parameters, output files, module selection, compiler settings, etc. You can also refer to online information for this