@whppt/layouts
Advanced tools
Whppt layouts plugin.
Weekly downloads
Changelog
Readme
A layout plugin for @whppt/nuxt. Implement configurable layouts in seconds.
@whppt/layouts
dependency to your projectyarn add @whppt/layouts # or npm install @whppt/layouts
@whppt/layouts
to the modules
section of nuxt.config.js
{
modules: [
// Simple usage
'@whppt/layouts',
// With options
['@whppt/layouts', { /* module options */ }]
]
}
~/plugins/layouts.js
import Vue from 'vue'
import layouts from '@whppt/layouts'
Vue.use(layouts)
~/nuxt.config.js
file.export default {
/* Rest of your config */
plugins: {
'~/plugins/layouts.js',
/* Rest of your plugins */
},
/*
* Note: the transpile step is only required if using the Vue.use() method,
* if using Vue.component() to register the components omit the following.
*/
build: {
transpile: ['@whppt/layouts'],
},
}