Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.6k views
in Technique[技术] by (71.8m points)

请问nginx有压缩js css这种的功能吗?不是gzip那种压缩

我想将我的web项目里的js在输出到客户端前实现网上那种混淆加密然后压缩的功能,不是gzip这种的,总之就是希望网页浏览者看我的js代码根本看不出名堂的那种,求教高手如何实现这种功能呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

内容改造应该是在编译构建环节的事情,不应该放在web服务器来做,不合适。

js代码混淆在行业里面是一个大课题。 你可以搜一下: JShaman


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...