Support data-uri ?
chux0519 opened this issue · 1 comments
chux0519 commented
It seems that Cratfy does not support data-uri encoded assets. I want to wrap all my assets (data-uri) up in one big single js file, but once using the data uri as assets' url, it doesn't work.
Simply I changed the isValidImage
method of loader.js
return f.startsWith('data:') || Crafty.imageWhitelist.indexOf(getExt(f)) !== -1;
It works, but will cause very long key in Crafty.assets.
Any idea / suggestion of this ?
OhIAmFine commented
I also meet the questions ,can Crafty have some solution?