elm-live icon indicating copy to clipboard operation
elm-live copied to clipboard

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

Open Levyks opened this issue 3 years ago • 1 comments

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

Levyks avatar Nov 25 '21 05:11 Levyks

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

🔨 Explore the source changes: b8a3a70425628efe51f07e72bfbd2d4e46ee3215

netlify[bot] avatar Nov 25 '21 05:11 netlify[bot]