Add Slice Machine to existing project with no libs?

Hey @jmetros, none should be an option indeed, I’ll add it to our team todo.
In the meantime, this is how you can get going:

  • npx create-nuxt-app my-app && cd $_
  • npx prismic-cli@beta sm --setup
  • yarn uninstall vue-essential-slices
  • remove the library from sm.json

To use your own slice:

  • create a component at slices/CallToAction/index.js and take slice as prop
  • copy-paste this code to /pages/:uid.vue
  • create a page on Prismic
  • your own slice should be displayed at /:uid!

Hope this helps, let me know!

1 Like