Skip to content

Choose path to refresh #20

@tobimori

Description

@tobimori

I'd love to have a feature to have a certain path to refresh on a specific changed file.

E.g. I use the plugin with a CMS that stores its content and configuration in txt & yaml files.

  • When that content changes, I want to reload all pages but not the CMS panel
  • When configuration changes, I want to reload only the panel pages

Paths to refresh could also be defined via glob matching.

Example configuration:

  plugins: [
    FullReload([
      {
        watch: ["site/{layouts,snippets,templates}/**/*", "content/**/*"],
        reload: ["!/panel", "*"]
      },
      {
        watch: ["site/blueprints/**/*"],
        reload: ["/panel"]
      }
    ])
  ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions