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

Implemented option to watch other non-elm files and auto-reload on changes #263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Levyks
Copy link

@Levyks Levyks commented Nov 25, 2021

With this change, you can use the --watch (or -w) option to watch any directory or file of your choice, and the browser will reload in response to any changes on them

This is really useful for when you're editing a CSS file, with it, you're able to see your changes in the browser without having to reload the page

Usage example:

elm-live src/Main.elm --dir=./public --watch public/* -- --output=public/build/main.js

You can watch multiple directories/files by separating them with commas:

elm-live src/Main.elm --dir=./public --watch public/*,someotherdir/* -- --output=public/build/main.js

@netlify
Copy link

netlify bot commented Nov 25, 2021

👷 Deploy request for elm-live pending review.
Visit the deploys page to approve it

🔨 Explore the source changes: b8a3a70

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

Successfully merging this pull request may close these issues.

1 participant