Package Exports
- @nuxtjs/prismic
- @nuxtjs/prismic/src/module.js
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 (@nuxtjs/prismic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@nuxtjs/prismic
@nuxtjs/prismic helps you connect your Nuxt.js application to your content hosted on Prismic
Features
- Add Prismic to your Nuxt app in seconds
- Access Prismic SDK with
$prismic
- Prismic previews supported, check out the demo!
- Compact configuration
Setup
- Add
@nuxtjs/prismic
dependency to your project:
yarn add @nuxtjs/prismic # or npm install @nuxtjs/prismic
- Then, add
@nuxtjs/prismic
to thebuildModules
section ofnuxt.config.js
and configure your Prismic API endpoint:
{
buildModules: [
'@nuxtjs/prismic',
],
prismic: {
endpoint: 'https://<REPOSITORY>.cdn.prismic.io/api/v2',
modern: true
// see documentation for more!
}
}
Development
- Clone this repository
- Install dependencies using
yarn install
- Start development server using
yarn dev
License
Thanks to James Pegg for the initial implementation of the module!