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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: watch custom folders/files #69

Closed
alec-c4 opened this issue Jan 13, 2025 · 3 comments
Closed

Feature request: watch custom folders/files #69

alec-c4 opened this issue Jan 13, 2025 · 3 comments

Comments

@alec-c4
Copy link

alec-c4 commented Jan 13, 2025

Hi!
Please add ability to watch custom files and folders, such as locale files, helpers, asset folders, etc.

@alec-c4
Copy link
Author

alec-c4 commented Jan 13, 2025

Update: found #67, but I'd like to propose to add ability to add other files/folders

@marcoroth
Copy link
Member

Hey @alec-c4, you should be able to add custom files and folders by adding them to the config yourself. Something like:

# config/environments/development.rb

# ...

  config.hotwire.spark.html_paths += ["config/locales", "app/helpers", "app/assets"]
  config.hotwire.spark.html_extensions += ["yaml", "yml", "rb"]

@jorgemanrubia
Copy link
Member

Thanks @marcoroth

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

No branches or pull requests

3 participants