@sparing-software/nuxt-sparing-center
Nuxt plugin manager
608
2
| Install | |
|---|---|
npm install @sparing-software/nuxt-sparing-center |
|
| Latest Version: | 3.0.4 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jan 7, 2023 |
| Links: | GitHub · npm |
Maintainer: vladyslavprosolupovsparing
Installation
Install package in your project
npm i @sparing-software/nuxt-sparing-center
Configuration
Add module in nuxt.config.js
modules: [
['@sparing-software/nuxt-sparing-center', {
// ... options
}]
]
Options
| Option | Description | Default |
|---|---|---|
plugins |
Import nuxt plugins without any installation or configuration. Available plugins: ['vue-on-resize', 'v-clamp', '100vh'], |
[] |
openApiService |
Import sparing-open-api. Available options: true, false |
true |
trailingSlash |
Forcing/force removing trailing slash at the end of the urls. Available options: true, false, null. Caveat: required nuxtjs version is 2.10.1+ |
null |
axiosI18nHeader |
Add Accept-Language header with current i18n.locale value to every axios request. Caveat: @sparing-software/nuxt-sparing-center must be set before @nuxtjs/axios module. |
false |
styleResources |
Import @/assets/sass/_vars.scss and @/assets/sass/_mixins.scss to every vue component. |
true |
sassUtilsCollection |
Import sass-utils-collection - styleResources must be enabled. |
true |
boxSizing |
Set global box-sizing: border-box |
true |
fixBrowserStyles |
Overwrite user agent styles: 'reset', 'normalize', false |
'reset' |
fixFontSmoothing |
Fix default font-smoothing: true, false |
true |
Example
['@sparing-software/nuxt-sparing-center', {
trailingSlash: true,
serviceModule: {
httpClient: 'path/to/httpClient'
},
axiosI18nHeader: true,
plugins: [
'v-clamp',
'vue-on-resize'
]
}]
Contributing
Want to help improve this plugin? Great!
Project is open-source so fork repo and join us!
License
MIT License © Sparing Interactive
Related Packages
nuxt-define
One utility function for module authors to define compiler constants for all bui...
13,412,511
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 3.0.4 | ^2.6.12 | MIT | |
| 3.0.3 | ^2.6.12 | MIT | |
| 3.0.1 | ^2.6.12 | MIT | |
| 3.0.0 | ^2.6.12 | MIT | |
| 2.2.4 | MIT | ||
| 2.2.3 | MIT | ||
| 2.2.2 | MIT | ||
| 2.2.1 | MIT | ||
| 2.2.0 | MIT | ||
| 2.1.1 | MIT | ||
| 2.1.0 | MIT | ||
| 2.0.0 | MIT | ||
| 1.5.2 | MIT | ||
| 1.5.1 | MIT | ||
| 1.4.1 | MIT | ||
| 1.4.0 | MIT | ||
| 1.0.0 | MIT |