可以分类打包成多个文件:entry: {app: ['./app/main.js', '.lib/index.js'],vendors: ['./app/vendor.js']}output: {path: staticPath,filename: '[name].js'}如果文件实在太大,考虑lazy load