Vue.js Prismic.io Integration
This is an Example on how to integrate prismic.io Headless CMS into Vue.js according to this:
https://prismic.io/docs/javascript/getting-started/integrating-with-an-existing-javascript-project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
- vue init webpack vue-prismic
- npm install prismic-javascript prismic-dom --save (already added to the package.json in this repo)
- npm run dev
- alternated hello.vue with methods and beforeMount
check production Buildloop through blog posts