react-app-rewired的拆包

背景

该项目打包出来的 js 中,有一个比较大,在网速不理想的情况下,甚至需要 7s

思路

既然......

git 简写 和常见命令说明

zsp 命令g - git

gst - git status

gl - git pull

gup - git pull --rebase

gp - git push

gd - git diff

gdc - git diff --cached

gdv - git diff -w "$@&qu......

常用正则

驼峰转连字符(中划线) s = s.replace(/([A-Z])/g,"-$1").toLowerCase();

连字符转驼峰function toHump(name) {

return name.replace(/\-(\w)/g, function(all, let......