webpack

共找到 3 篇文章

3 篇文章
2 分钟阅读
4500 字数
webpack

webpack 代码分片

webpack CommonsChunkPlugin 🔗代码分片是webpack中重要的优化手段,对于一个比较大的chunk,有必要提取出当前chunk中依赖的不经常变化的库 usage 🔗 1 new webpack.optimize.CommonsChunkPlugin() 配置项

webpack

Webpack Loader Plugin

webpack Loaders and Plugins different 🔗Loaders: 🔗Loaders work at the individual file level during or before the bundle is generated. loader是文件加载器,能够加载资源文件,并对这些文件进行一些处理,