How To Provide A Web Site As A Single File?
Solution 1:
Option 1: via Chrome
There is a set of two Chrome extensions that allow you to save a webpage to a single HTML file:
The second extension is a helper extension required by the first one. I did not test this, but it seems to have reasonably good reviews in the Chrome web store (apparently it can choke on complex pages).
With these extensions, you should just be able to open the page in Chrome and use the extensions to save as a single file with embedded CSS/scripts/images.
Option 2: scriptable
If you want to automate things in a script, there is also a project on github exactly for that, which can be installed via npm.
Solution 2:
I am a little confused on what you want to do but I am guessing you need a way to save some storage, one thing that you could maybe try in storing some files in Google Drive? That way, you don't have to worry about the files on there, you just upload your images, and pull them from drive like this:
<imgsrc="https://drive.google.com/uc?export=download&id=YOUR_FILE_ID">
Of course replace YOUR_FILE_ID
with your actual file ID, get that by using the share link for Google Drive. Like this:
https://drive.google.com/file/d/YOUR_FILE_ID/view?usp=sharing
I would find this a better solution than zipping it, but the choice is yours, hope this helps you!
Post a Comment for "How To Provide A Web Site As A Single File?"