README
Nuxt Modular
Nuxt modular management
Install
npm install --save @cknow/nuxt-modular
Add @cknow/nuxt-modular
to modules section of nuxt.config.js
:
{
modules: [
'@cknow/nuxt-modular'
]
}
Usage
This module allows you to build your app in modules.
By default the folders within modular
will be considered modules and within each module you can use the same root structure, that is, your module can contain
layouts
, middleware
, plugins
, pages
, static
, store
.
Ex:
modular
example1
pages
index.vue
example2
pages
index.vue
pages
index.vue
You should be able to access this:
/ -> pages/index.vue
/example1 -> modular/example1/pages/index.vue
/example2 -> modular/example2/pages/index.vue