
使用dll后的打包時(shí)間

使用dll前的打包時(shí)間

引入hard-source-webpack-plugin
-------------------------------------------------------------------------------------------------

使用dll后代碼體積

使用dll前代碼體積
-------------------------------------------------------------------------------------------------

dll配置

實(shí)際加載文件大小

除去dll配置的文件大小
-------------------------------------------------------------------------------------------------
引入hard-source-webpack-plugin:
npm install --save-dev hard-source-webpack-plugin
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
module.exports = {
// ...... plugins: [
new HardSourceWebpackPlugin()
]}