statistics

lihbr utils for Nuxt.js

@lihbr/utils-nuxt.statistics provides some (not much) statistics when using Nuxt.js

Features

Know how many pages per second you are generating

Installation

Add @lihbr/utils-nuxt.statistics dependency to your project:

yarn add --dev @lihbr/utils-nuxt.statistics
npm install --save-dev @lihbr/utils-nuxt.statistics

Then, add @lihbr/utils-nuxt.statistics to the buildModules section of your nuxt.config.js file:

nuxt.config.js
export default {
  buildModules: [
    [
      "@lihbr/utils-nuxt.statistics",
      {
        /* see configuration below for more */
      }
    ]
  ]
};

Reference

Configuration

ignore

  • Type: Array
  • Default: []

Tell which statistics functions to ignore.

module‏‏‎‏‏‎ options
{
  // will ignore `generate` statistics functions
  // (currently the only one available)
  ignore: ["generate"]
}

Configuration Defaults

module‏‏‎ options
{
  ignore: []
}
Edit this page on GitHub Updated at Tue, Apr 13, 2021