# DruxtEntityNuxtModule()

The Nuxt.js module function.

  • Adds dependant modules.
  • Adds Nuxt plugin.
  • Adds Nuxt Storybook integration.

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

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

Kind: global function
Todo

  • Add module level options.
  • Document options.

Properties

Name Type Description
options.druxt object DruxtJS root level options.
options.druxt.baseUrl string Base URL of Drupal JSON:API backend.

Example

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