Skip to content

Exclude pages from output during build process ("dev only" pages) #148

Description

@matthew-ia

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or updates to an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions