# Functions

DruxtNuxtModule(moduleOptions)

Nuxt module function to install Druxt.

# Typedefs

ModuleOptions : object

Module options object.

# DruxtNuxtModule(moduleOptions)

Nuxt module function to install Druxt.

Kind: global function

Param Type Description
moduleOptions ModuleOptions DruxtJS module options.

Example (Nuxt configuration with module options)

module.exports = {
  modules: [
    ['druxt', { baseUrl: 'https://demo-api.druxtjs.org' }]
  ]
}
1
2
3
4
5

Example (Nuxt configuration with root level options)

module.exports = {
  modules: [
    'druxt'
  ],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org'
  }
}
1
2
3
4
5
6
7
8

# ModuleOptions : object

Module options object.

Kind: global typedef
Properties

Name Type Description
baseUrl string The Base URL of the Drupal JSON:API backend.