Package Exports
- druxt
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (druxt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Druxt.js - The Drupal powered Nuxt framework.
Druxt.js connects your Drupal backend to your Nuxt.js frontend through the power of Drupal's JSON API.
Features
- Drupal path alias and redirect compatible router.
- Entity / Field render system powered by Drupal display modes.
- Block render system with support for regions and custom content blocks.
- Views and Views blocks.
- On-demand JSON API resource engine with Vuex.
- Breadrumbs, Menus, Search API and more.
Install
$ npm install druxt
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
...
'druxt'
],
druxt: {
baseUrl: 'https://example.com'
}
}Options
Base Druxt options
These options are available to all Druxt modules.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
axios |
object |
No | {} |
Axios instance settings. |
baseUrl |
string |
Yes | null |
Base URL for the Drupal installation. |
endpoint |
string |
No | /jsonapi |
JSON:API Endpoint of the Drupal installation. |