001. What is Webpack? What are the roles?
Webpack can be seen as a modular baler: The thing it does is to analyze your project structure, find JavaScript modules and other extension languages (Scss,typescript, etc.) that the browser cannot run directly, and convert and package them into the appropriate format for the browser to use
the way Webpack works is to treat your project as a whole, With a given master file (for example: Index.js), Webpack will start to find all dependent files for your project from this file, use loaders to process them, and finally package them as one (or more) browser-aware JavaScript files.
1, modular, so that we can be complicated to refine the program into small files; 2, similar to typescript this development language based on javascript: enable us to achieve the current version of JavaScript can not be directly used by the features, and then can be converted to JavaScript files to make the browser recognizable; 3, SCSS, CSS Preprocessor for Less
"Webpack"---Module Packager webpack base use---"Midgard"