DllPlugin packaged files do not decrease

https://codeshelper.com/a/11...

webpack,DLL.js can also be configured according to the online tutorials, but the build speed has not been reduced.
instead, the packaged file remains the same, and additional dll.js files are introduced.
so instead of opening the project page, more dll.js files are loaded?

Apr.27,2022

the size of the package generation file is larger because this article uses caching techniques.

because the cache is used, the second build is faster than the first. However, this technology has great disadvantages and is not applicable.

to fundamentally solve the speed problem, you can use the latest version of webpack4.x, while webapck2.x is used in this article.

webpack4.x uses parallelization. Without other optimizations, the speed is nearly doubled.

Speed up can also be done in other ways:

  • optimize picture size with image-webpack-loader ,
  • In
  • development mode, do not use extract-text-webpack-plugin ,
  • do not use UglifyJsPlugin , one of the reasons for the acceleration of webapck4.x production mode is the use of the new compression plug-in terser-webpack-plugin instead of it.
  • include , exclude

there are many more, so I won't talk about them all. With more practice, experience will naturally come.

you can also try parcel to achieve packaging.

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3dd0d-2b728.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3dd0d-2b728.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?