Because I am engaged in Andorid development, I don't know how to configure the package.json
and webpack.config.js
files before they can be used.
typecho2017-07-05 11:01:59
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.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