Skip to content

How to Trigger .build Directory Recompile / Watch with non *.ts Files #302

@NicoHinderling

Description

@NicoHinderling

Hi there! I have been really enjoying this plugin! 😁

I have one question. For my project, I have some *.html files that I use for email templates. When I change my *.ts files, "Compiling with Typescript..." indeed gets kicked off, however changing those *.html files does not.

I found this confusing since the .build directory contains the *.html file copies that are actually served. When I did local testing, it took me 20 minutes to realize why my changes to the HTML templates were not being registered (the copies in .build were remaining the same).

Is it possible to change the config so that changes to other file types (like my *.html files) kicks off a recompilation of the .build dir?

What I've Tried (Unsuccessfully)

  • Modify my tsconfig.json file to add "include": ["src/**/*.ts","src/**/*.html"]

Please let me know if I'm doing something dumb or if this is currently not possible (in which case, perhaps this could be a feature request 😅)!

Thank you!

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