Packaging Javascript/Content in the application

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Packaging Javascript/Content in the application

Postby Anima » Wed Nov 29, 2017 9:22 am

Hi all,

Just wondering what are the methods for bundling resources people are using? For instance, if you have a UI done in Javascript/HTML/CSS, I'd like to hide those files to the user and not have them as plain text on the installation. So I'm embedding them in the project in VS and then using the resource handler to map the URLs to the files that way.

Is there an easier solution? Ideally, I'd like to just have a folder where I can map the files by filename or something. Having to explicitly add each file is kind of tedious. I was also thinking of at compile time, generating a pak file or something and just unpack that in memory on startup.

Thanks,
Stephen
Anima
Newbie
 
Posts: 8
Joined: Wed Aug 02, 2017 9:06 am

Re: Packaging Javascript/Content in the application

Postby magreenblatt » Wed Nov 29, 2017 9:46 am

CefResourceManager supports directories and zip achives. You can also password protect the zip archives.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 44 guests