.Net Component for JavaScript Obfuscation?

后端 未结 5 1550
名媛妹妹
名媛妹妹 2021-01-13 13:13

Are there any .Net components for obfuscating JavaScript? I\'m generating JavaScript dynamically & emitting via ClientScript.RegisterClientScriptBlock. I\'d like to make

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 13:52

    You can call out to Google's Closure Compiler from .NET, here's an example:

    • http://madskristensen.net/post/Use-Googles-Closure-Compiler-in-C.aspx

    Or there's a .NET port of the YUI Compressor:

    • http://www.codeplex.com/YUICompressor

提交回复
热议问题