Skip to content

watch doesn't trigger a new build on template changes #64

@waynehoover

Description

@waynehoover

Not sure if this is an issue with spike-core or spike-records.

My records config looks something like this:

const records = new Records({
  addDataTo: locals,
  posts: {
    url: 'https://url-to-some.com/post.json',
    template: {
      transform: (data) => { return data.items },
      path: 'views/post.sgr',
      output: (post) => { return `/post/${post.fields.slug}.html` }
    }
  }
})

But every time I edit views/post.sgr I have to restart the server with spike watch which is actually for me an npm script npm start. But it happens if I run it as an npm script or globally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions