Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wagerfield/nuxt-base

Base module for Nuxt.js
https://github.com/wagerfield/nuxt-base

Last synced: 6 days ago
JSON representation

Base module for Nuxt.js

Awesome Lists containing this project

README

        

# Base Module for Nuxt

Opinionated [Nuxt][nuxt] config defaults.

## Installation

```bash
yarn add nuxt-base
```

## Setup

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

## Configuration

```js
// 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][twitter]

## License

[MIT][mit]

[nuxt]:https://nuxtjs.org
[mit]: https://opensource.org/licenses/MIT
[twitter]: https://twitter.com/wagerfield