webpack 4 sourcemap type selection

The core of our concern may not sourcemap, specifically optimized for what, what is there to perform

Our greatest concern should be the speed of execution, as well as the real load, size of the js file, I posted about here is an example, and compare load

 

Under 1. development mode

选择 cheap-module-eval-source-map,这里能生成

 

 

 

Under 2. production mode

 

select cheap-module-source-map

 

 

Guess you like

Origin www.cnblogs.com/bbb324/p/11756448.html