@getcandy/js-client-nuxt

0.11.5 • Public • Published

js-client-nuxt

A Nuxt.js adapter for the javascript client

Installation

Install the package

npm install @getcandy/js-client-nuxt

Add it to your nuxt.config.js file

modules: [
 '@getcandy/js-client-nuxt'
}]

Config

{
  host: "http://store-api.test"
}

SSR Support

If you are using SSR, you will need to transpile the js client

build: {
  transpile: [
    '@getcandy/js-client'
  ]
}

Usage

The Javascript client will be available in your components as $getcandy

See JS client docs for full reference

Readme

Keywords

none

Package Sidebar

Install

npm i @getcandy/js-client-nuxt

Weekly Downloads

1

Version

0.11.5

License

ISC

Unpacked Size

2.1 kB

Total Files

5

Last publish

Collaborators

  • alecritson
  • glennjacobs