Creating Slices with Slice Machine | What's a Slice

Quick questions, when you build a slice using a slicing machine, does that slice only contain the model or have all of the javascript, HTML, and CSS?

Hi @thesrs02

Thanks for reaching out.

If I understand your question correctly, then as you know, a Slice Machine project lives on your localhost. When you push your slice to Prismic, you push your custom types, including the slices you have created locally, to be able to use them when creating documents in Prismic UI.

The code that you build with the help of the Slice machine resides in your local device, and you can version it by pushing it to your code versioning system such as Git, which will finally consume the Prismic API once you deploy it to your application.

Please let me know if you need any more clarification,