Outline
This chapter focuses on a few basic concepts using just a few of webpack
Common ways to run webpack
- webpack index.js
- npx webpack index.js
- npm run bundle -> webpack
A simple project analysis package
chunks: We are doing a complex package, it will pack a lot of files in a large file, bundle.js may also have relationships with other, which would put chunks 0
Said presentation mode attribute is not set, you can be set to development or production mode, in which the production code is the period of compression
What is webpack
webpack ultimately packaged module is a tool, for example, the following code, which can ultimately packaged modules together to produce a final document