HTML source file is encrypted at build, and decrypted at run.
https://www.npmjs.com/package/cordova-plugin-crypt-file
cordova plugin add cordova-plugin-crypt-file
cordova build [ios / android]
cordova emulate [ios / android]
or
cordova run [ios / android]
- .html
- .htm
- .js
- .css
You can specify the encryption subjects by editing plugin.xml
.
plugins/cordova-plugin-crypt-file/plugin.xml
<cryptfiles>
<include>
<file regex="\.(htm|html|js|css)$" />
</include>
<exclude>
<file regex="exclude_file\.js$" />
</exclude>
</cryptfiles>
Specify the target file as a regular expression.
- iOS
- Android
- CrossWalk
It would be very helpful if you show me your project (If you have GitHub repository, that URL would be nice). It is very hard for me to reporduce your enviroment.
Apache version 2.0