编程小记-22.4.24

作者:
淡白
创建时间:
Apr 24, 2022, 10:09:22 PM
学习 开发 编程小记 515

摘要:angular打包内存占用过高通过如下命令限制node --max_old_space_size=600 ./node_modules/@angular/cli/bin/ng build

angular打包内存占用过高

通过如下命令限制
node --max_old_space_size=600 ./node_modules/@angular/cli/bin/ng build

golang打包压缩体积

go build -ldflags '-w -s' -o main
upx main(需要先安装upx)

js提取页面文本内容

document.documentElement.innerText