@getcandy/nuxt-client

0.12.0 • Public • Published

js-client-nuxt

A Nuxt.js adapter for the javascript client

Installation

Install the package

npm install @getcandy/nuxt-client

Add it to your nuxt.config.js file

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

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.12.02latest

Version History

VersionDownloads (Last 7 Days)Published
0.12.02
0.11.60

Package Sidebar

Install

npm i @getcandy/nuxt-client

Weekly Downloads

1

Version

0.12.0

License

ISC

Unpacked Size

2.47 kB

Total Files

5

Last publish

Collaborators

  • alecritson
  • glennjacobs