前端壓縮:
一般前端打包壓縮工具:webpack,grunt,gulp
https://segmentfault.com/a/1190000012571492?utm_source=tag-newest
https://www.jianshu.com/p/1fc5b5151abf
現成框架:http://panjiachen.github.io/vue-admin-template
網頁版壓縮工具
http://dean.edwards.name/packer/
http://kan.willin.org/?page_id=1288
解壓:還原網站上壓縮的js代碼
一、恢復JSMIN等工具壓縮的JS代碼:
1)Javascript Beautifier能夠將jsmin壓縮后的js文件內容重新恢復成可讀性很好的js文件。
網頁版:http://jsbeautifier.org
來自:http://blog.sina.com.cn/s/blog_9a2c25400101evq2.html
二、google 解壓縮
不太可能做到100%還原,比如變量名稱。 因為瀏覽器得到的也是壓縮后的文件。