mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.17k stars 106 forks source link

Showing custom errors when using Budo API #210

Closed mathisonian closed 7 years ago

mathisonian commented 7 years ago

I am using budo to power the development server of https://github.com/idyll-lang/idyll, and so far it has been great. Thanks for building it ✨

I was wondering if it is possible for me to force budo to display specific errors. That is, I have errors that may occur in my program outside of budo's build step, but I would like to show them in the browser. Is this possible?

mattdesl commented 7 years ago

Yes! This is one of the nice features of the new LiveReload client, but it will take a little setup on your part. We are using this at work to show LESS/SASS syntax errors in a browser pop-up message.

Here's a simple example: https://github.com/mattdesl/test-budo-client-popup

Let me know how it goes!

mattdesl commented 7 years ago

P.S. idyll looks awesome, great work. 👏

mathisonian commented 7 years ago

Thanks @mattdesl!

I've gotten a basic proof of concept working thanks to that example. I'll post an update once there's something live.