Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wagerfield/nuxt-base
- Owner: wagerfield
- License: mit
- Created: 2017-11-06T21:32:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T01:48:56.000Z (over 4 years ago)
- Last Synced: 2024-11-05T12:27:01.681Z (about 2 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
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