Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save HTML As Standalone Page: Exporting Tool?

I need to regularly send html pages to a client as standalone .html files with no external dependencies. The original pages are done with node.js and express and they contains several librairies such as High Charts. I have done the preparation manually until now, this includes:

  • Transform all images into blobs
  • Copy all external .js and .cs inside the page
  • Minimize where possible (standards librairies such as jQuery or Bootstrap...)

The result is a single .html file that can be opened without an internet connection and looks just like the original.

Is there any tool to do this automatically? If not, maybe I'll code it myself in Python. Do you have any recommendation around that?

Thanks

like image 774
Joan-Diego Rodriguez Avatar asked Jul 04 '14 06:07

Joan-Diego Rodriguez


People also ask

How do I save HTML File only?

If you use Microsoft Edge browser, do the following: ctrl+s then select html only on the drop-down menu. you will get one html file without any extra folders.

What is a standalone HTML page?

html file that can be opened without an internet connection and looks just like the original.

How do I save a HTML File to my desktop?

Choose File > Save As and choose HTML from the drop-down list. Give the filename an extension of . html, specify the file location, and click Save.


1 Answers

Monolith is a CLI tool for saving complete web pages as a single HTML file

See https://github.com/Y2Z/monolith

like image 198
Martin Monperrus Avatar answered Oct 07 '22 11:10

Martin Monperrus