Nuxt.js module for Zendesk
This module allows to automatically add Zendesk Web Widget. Please refer vue-zendesk plugin for configurations.
- Add the
@dansmaculotte/nuxt-zendesk
dependency withyarn
ornpm
to your project - Add
@dansmaculotte/nuxt-zendesk
to themodules
section ofnuxt.config.js
- Configure it:
{
modules: [
// Simple usage
'@dansmaculotte/nuxt-zendesk',
// With options
[
'@dansmaculotte/nuxt-zendesk',
{ /* module options */ }
],
],
// Or with global options
zendesk: {
key: '',
disabled: false,
settings: {
webWidget: {
color: {
theme: '#78a300'
}
}
}
}
}
- Type:
String
- Default:
process.env.ZENDESK_KEY || ''
- Default:
- Type:
Boolean
- Default:
process.env.ZENDESK_DISABLED || false'
- Default:
- Type:
Boolean
- Default :
process.env.ZENDESK_HIDE_ON_LOAD || false
- Default :
This option comes directly from Zendesk documentation.
- Type:
Object
- Default:
{}
- Default:
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev