this is the weex
project. Weex does not support writing local images directly in src. So I converted all the images to base64
values and then referenced the base64 to achieve the same effect. However, there is a problem. localPic
is a module method to read the Base64 value of the image. The packaged page will contain all the js code
under the images folder.
if I write the
in the localPic method, I won"t have this problem, and all the js files in the same directory will be packaged with the path of the
file variable
.
I can pack whatever js I want to quote. do not pack all of them
. How can I solve this problem?
Picture js: with Base64 value
js:
: