nuxt-base
v0.4.0
Published
Base module for Nuxt
Downloads
14
Readme
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
}
}