1.0.0 • Published 5 years ago

hexo-huge-site-plugin v1.0.0

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

hexo-huge-site-plugin

NPM Version LICENSE Build Status Coverage Status dependencies Status devDependencies Status

This plugin helps hexo to generate a huge site.

Installation

npm install --save hexo-huge-site-plugin

Configuration

Add huge_site_plugin options to the _config.yml file.

huge_site_plugin:
  enable: true
  concurrency: 10
  database_format: 'v8se'
  overrideRenderPostFilter: true
  • enable <Boolean> Enable hexo-huge_site_plugin.
    • Default value is false.
  • concurrency <Number> Maximum number of files to be generated in parallel. hexo generate options
    • Default value is 10.
    • Set a small number or provide -c option on generate command if rendering HTML takes very long time or fails with OOM error.
  • database_format <String>
    • Default value is v8se.
    • json Save the database to file using JSON stringify. Default implementation.
    • v8se Save the database to file using v8 serialization.
    • Set as v8se if save database fails.
  • overrideRenderPostFilter Boolean Limit rendering concurrency to reduce memory usages.
    • Default value is false.
    • Enable it if rendering post takes very long time or fails with OOM error.

License

Copyright (c) 2019 dailyrandomphoto. Licensed under the MIT license.