nuxt-base

0.4.0 • Public • Published

Base Module for Nuxt

Opinionated Nuxt config defaults.

Installation

yarn add nuxt-base

Setup

// nuxt.config.js
module.exports = {
  modules: [
    'nuxt-base'
  ]
}

Configuration

// nuxt.config.js
module.exports = {
  modules: [
    'nuxt-base'
  ],
  // defaults
  base: {
    overrideRouter: true,
    router: {
      linkActiveClass: 'active-link',
      linkExactActiveClass: 'active-link-exact'
    },
    overrideMessages: true,
    messages: {
      'error_404': 'Page not found',
      'server_error': 'Server error',
      'back_to_home': 'Back to home page'
    },
    addConstantsPlugin: true,
    addHeadMetaTags: true,
    addSVGLoader: true
  }
}

Author

Matthew Wagerfield

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i nuxt-base

Weekly Downloads

2

Version

0.4.0

License

MIT

Unpacked Size

59.2 kB

Total Files

8

Last publish

Collaborators

  • wagerfield