I found this answer at StackOverflow. I think it is useful, so I share with you here.
First of all, you should ensure the site is served. Then you can:
- Open your site in any browser
- Open the browser console, and type:
- Copy the output, and save it as
Supposing your site is running on
- Open a shell, and type:
curl localhost:3000 > server.html
You can simply run:
diff client.html server.html
Note that you may need to format both files before diff.