Skip to content

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