Skip to content

Changed referenced assets isn't overriding existing ones #17

@salamwaddah

Description

@salamwaddah

Start watching and reference an asset in layout for example <link href="/css/styles.css" rel="stylesheet">

issues

  1. The references styles.css is not being watched so any changes will not apply until you restart watching.
  2. Another issue is, While watching if you reference an asset and that asset already exist in build dir, it will not override and ignore your changes and just use the original asset in build.

here is example to demonstrate issue number 1 and 2

  1. Run dev
  2. add reference new empty styles.css file in layout
  3. go to build and inspect that file. it should be empty
  4. edit the styles.css in assets
  5. do a change in layouts or pages to trigger the watch (issue number 1)
  6. go to build and inspect styles.css you will NOT find your changes instead just the original empty styles.css from the first watch.

The problem seems to be present for all kind of assets that are not .html because they are not being regenerated by watch

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions