# DruxtSchemaNuxtModule(moduleOptions)

The Nuxt.js module function.

  • Adds the Schema plugin to Nuxt.js.
  • Adds the Schema Vuex store to Nuxt.js.
  • Builds the Schema data via the builder:prepared hook.

The module function should not be used directly, but rather installed via yout Nuxt.js configuration file.

Options are set on the root level druxt Nuxt.js config object.

Kind: global function
Todo

  • Add module level options.
  • Document options.
Param Type Description
moduleOptions object Nuxt.js module options object.

Example

// `nuxt.config.js`
module.exports = {
  modules: [
    'druxt-schema'
  ],
  druxt: {
    baseUrl: 'https://example.com'
  }
}
1
2
3
4
5
6
7
8
9