npm.io
1.0.2 • Published 5 years ago

nuxt-log-generate-errors

Licence
ISC
Version
1.0.2
Deps
1
Size
1 kB
Vulns
0
Weekly
0

Nuxt-module for logging errors during static generation

Write a log to a file or send a request via net

Install

nmp install -D nuxt-logs-generate-errors

// nuxt.config.js
module.exports = {
	buildModules: [
		['nuxt-log-generate-errors', {file: 'generate-errors-log.json'}]
    ],
}

Options

interface moduleOptions {
  file?: string
  http?: {
    url: string,
    method?: string // default POST
    headers?: {[key: string]: string}
  }
}