@whppt/layouts
A layout plugin for @whppt/nuxt. Implement configurable layouts in seconds.
📖 Release Notes
Table of Contents
Features
Usage
- Add
@whppt/layouts
dependency to your project
yarn add @whppt/layouts
- Add
@whppt/layouts
to the modules
section of nuxt.config.js
{
modules: [
'@whppt/layouts',
['@whppt/layouts', { }]
]
}
- create a nuxt plugin, eg.
~/plugins/layouts.js
import Vue from 'vue'
import layouts from '@whppt/layouts'
Vue.use(layouts)
- Make a few updates to your
~/nuxt.config.js
file.
export default {
plugins: {
'~/plugins/layouts.js',
},
build: {
transpile: ['@whppt/layouts'],
},
}
- Check the documentation for any layout components you wish to use on how to register and initialise each component in whppt.
Options
License
MIT License