Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dozjs/doz-snap

Pre-rendering for Doz
https://github.com/dozjs/doz-snap

doz prerender static-site-generator

Last synced: about 1 month ago
JSON representation

Pre-rendering for Doz

Awesome Lists containing this project

README

        

# doz-snap
Pre-rendering for Doz

> Works only with bundle provided by Parcel.

## Installation

```
npm install --save-dev doz-snap
```

## Usage

```
$ doz-snap -f ./public/index.html
```

### CLI
```
$ doz-snap --help

Options:

-f, --entry-file Entry file
-b, --bundle-id Bundle script id 'bundle'
-D, --doc-type-string Document type ''
-d, --delay-render Delay render 0
-s, --link-selector Link selector 'a[href]'
-i, --index-file Index file 'index.html'
-o, --output-dir Output directory' 'snap'
-p, --public-url Public url 'http://localhost'
-R, --router-attribute Router attribute 'data-router-link'
--no-clear-dir Disable clear directory before build
--no-verbose Disable verbose log
--cname A domain in a file named CNAME
```

## Important
Once your static app has been created, however, you need a web server such as Apache, Nginx etc.

## Changelog
You can view the changelog here

## License
doz-snap is open-sourced software licensed under the MIT license

## Author
Fabio Ricali