Jul 25, 2017 · 1 min read
Another option that I use, is to simply proxy your requests to the PHP server. So for instance, let’s say you’re running Symfony on :8000, then you add: { proxy: { “/": { target: “http://localhost:8000" } }
With this, the dev server will inject the script (and CSS) into the page, and you get hot reloading, while wrapping your main PHP page. Then you only need to worry about the production environment.
