https://github.com/rjsf-team/react-jsonschema-form
react+antd+dva项目开发过程中,npm run build是会构建一个dist文件夹,
将此文件压缩后发给后端部署,自动打包可以提高文件提测时反复手动打包问题。
压缩插件zip-webpack-plugin
压缩 dist目录
https://www.codeleading.com/article/1898834256/
roadhog https://github.com/sorrycc/blog/issues/15
不压缩js代码
cross-env ESLINT=none COMPRESS=none roadhog build命令
“build”: “cross-env ESLINT=none COMPRESS=none roadhog build”