Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NicoHinderling opened this issue Dec 6, 2023 · 2 comments

Comments

@NicoHinderling
Copy link

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!

@juan-mesh
Copy link

I'm not an expert but did you tried to include those files in your serverless package:

package:
  include:
    - src/**

@NicoHinderling
Copy link
Author

package:
include:
- src/**

yes. it's all good, honestly just ended up testing the html the old fashion way and then once good, wiped the .build folder.

It would be really nice to add this support, but I understand if this is out of scope and will leave it up to the maintainers if they want to pursue or close this 馃檹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants