antd按需加载前:
优化antd按需加载后:
优化momentjs后:
只引入中文和英文两个语言包:
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en-gb|zh-cn/),
直接不实用 moment使用new Date()
最终体积由2.7m -> 912kb
时间:2019-12-17 08:52:02
antd按需加载前:
优化antd按需加载后:
优化momentjs后:
只引入中文和英文两个语言包:
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en-gb|zh-cn/),
直接不实用 moment使用new Date()
最终体积由2.7m -> 912kb
一石二鸟-Kill Two Birds with One Stone1500字英语作文
2024-07-28