Webpack lodash is still as big as it is after loading settings on demand.

clipboard.png

clipboard.png

clipboard.png

clipboard.png

Mar.22,2021

essentially, you want to use Webpack's Tree Shaking feature. It's just that the posture of the dewdrop using lodash-webpack-plugin is a little incorrect.

if lodash-webpack-plugin is installed, you also need to install babel-plugin-lodash .

then you can configure it in the webpack configuration and use it accordingly:

  

the key is how you use lodash in your code

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-1e34473-442ba.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-1e34473-442ba.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?