How to hide Angularjs source codes?

前端 未结 5 977
有刺的猬
有刺的猬 2021-02-02 00:36

How to hide app.js, controller.js files or code?

They are visible in html source. Is there anyway to hide them?

5条回答
  •  有刺的猬
    2021-02-02 00:43

    1. minify
    2. uglify along with minify you must uglify your code, which make it difficult to understand, it will renames the variables and function in very ugly manner, not easy to break the code.
      Also you can encrypt it well, you have and have to decrypt when it is needed to use, and that can't be remain hidden from the front end tools

提交回复
热议问题