小编Mat*_*ieu的帖子

Webpack:什么是没有加载器的模块?如何优化它们?

我正在用来speed-measure-webpack-plugin衡量 Webpack 构建的性能,有些事情对我来说很神秘:当冷启动我的开发构建时,我发现这modules with no loaders是迄今为止最常见的模块类型,也是耗时最长的模块类型处理:

\n\n
 SMP  \xe2\x8f\xb1  Loaders\nmodules with no loaders took 48.51 secs\n  module count = 2963\ntypings-for-css-modules-loader, and\npostcss-loader, and\nless-loader took 41.81 secs\n  module count = 95\nts-loader took 39.55 secs\n  module count = 488\nbabel-loader took 4.12 secs\n  module count = 4\ncss-loader, and\npostcss-loader took 3.91 secs\n  module count = 1\nurl-loader took 1.13 secs\n  module count = 10\npegjs-loader took 0.723 secs\n  module count = 2\nstyle-loader, and\ntypings-for-css-modules-loader, and\npostcss-loader, and\nless-loader took 0.157 secs\n  module count = 95\nhtml-webpack-plugin took …
Run Code Online (Sandbox Code Playgroud)

webpack

10
推荐指数
1
解决办法
4961
查看次数

标签 统计

webpack ×1