Pre-rendering for Doz
Works only with bundle provided by Parcel.
npm install --save-dev doz-snap
$ doz-snap -f ./public/index.html
$ doz-snap --help
Options:
-f, --entry-file Entry file
-b, --bundle-id Bundle script id 'bundle'
-D, --doc-type-string Document type '<!DOCTYPE html>'
-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
Once your static app has been created, however, you need a web server such as Apache, Nginx etc.
You can view the changelog here
doz-snap is open-sourced software licensed under the MIT license