Support for dummy data for npm run dev #927
Closed
saugatmaharjan
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
It's not documented but you can use a defaultPreviewData property on your exported template. check out the source for the example templates, there are a few. working on a replacement for the preview/dev server that will make that a lot easier in the future |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
can't use npm run dev to preview while components props are dynamic, had to create own server
Proposal
enable users to create a .js or .json file with same name as template and load data to use as props for the template
Beta Was this translation helpful? Give feedback.
All reactions