Be able to include pages that are dev only, and not output during build.
For example, say I want my project to include some examples, but not be output in my build files. Suppose my project looks like:
src/
pages/
examples/
example-1.svelte (dev only)
index.svelte (actual page for prod)
One solution might be to use a page file prefix that prevents it from being built when mode is 'production'.
Some examples of a prefix could be:
_example-1.svelte
.example.svelte (I kinda like this one because it follows the "hidden file" standard and even the editor will make it look like a hidden file)
Be able to include pages that are dev only, and not output during build.
For example, say I want my project to include some examples, but not be output in my build files. Suppose my project looks like:
src/pages/examples/example-1.svelte(dev only)index.svelte(actual page for prod)One solution might be to use a page file prefix that prevents it from being built when mode is
'production'.Some examples of a prefix could be:
_example-1.svelte.example.svelte(I kinda like this one because it follows the "hidden file" standard and even the editor will make it look like a hidden file)