WeChat applet code reinforcement

1. Install the devtool-code-obfuscation plugin in the store

![Insert picture description here](https://img-blog.csdnimg.cn/b9568a46d45c45489b348c9b7bb7bf22.png

2. In the compiler menu settings->extended settings->code reinforcement, click Get

insert image description here

3. Several methods of code reinforcement

1. Right click on a single file
insert image description here

2. Right-click on the folder to generate a hardening configuration file
insert image description here

3. Batch file encryption
In the config in the code_obfuscation_config.json file, add the file paths to be encrypted in batches, and the encrypted files will be displayed in the projectmaps
insert image description here

4. Complete the code reinforcement

When the developer completes the development of the applet project, click [Preview]/[Real Device Debugging]/[Upload] to display the code hardening prompt, and click OK to complete the code hardening
insert image description here

Guess you like

Origin blog.csdn.net/qq_37332614/article/details/130741326