0.0.4 • Published 3 years ago

@smarterlabs/site-downloader v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

@smarterlabs/site-downloader

Converts any website into a static site. Minimal changes are made to ensure pages can still render staticly.

Usage

const siteDownloader = require(`@smarterlabs/site-downloader`)

siteDownloader({

	// Sitemaps to be parsed for page locations
	entry: [
		`https://originsite.com/sitemap.xml`,
	],


	// Add domains here to also crawl assets from other locations when encountered, useful for CDNs
	domains: [
		{ domain: `originsite.com`, path: `/` },
		{ domain: `assets.cdn.com`, path: `/assets` },
	],

	// Output directory
    dist: `dist`,
})