Edge Computing with Cloudflare Workers
Live Preview: Build and Test Workers Faster with Wrangler CLI 1.2.0

Live Preview: Build and Test Workers Faster with Wrangler CLI 1.2.0

8/20/2019 · Matt Alonso

What this post added

Introduced a `--watch` flag to `wrangler preview` that enables live preview of Workers changes. This feature uses the `notify` crate for file system event monitoring with a cooldown period to prevent excessive builds, and a WebSocket connection to localhost for communication between the Wrangler CLI and the previewer UI. This significantly improves the developer experience by providing a single, auto-refreshing preview tab.

Read the original post ↗