Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dozjs/doz-snap
- Owner: dozjs
- License: mit
- Created: 2018-09-10T11:23:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T07:46:17.000Z (over 3 years ago)
- Last Synced: 2024-11-10T22:49:53.064Z (2 months ago)
- Topics: doz, prerender, static-site-generator
- Language: JavaScript
- Homepage:
- Size: 836 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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 --helpOptions:
-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