browser-sync? #248
Comments
polymer serve -p 8081 & browser-sync start --proxy 'localhost:8081' --port 8080
# You might also need to specify the files/directories to watch using the '--files' arg The single If your shell does not support |
Thanks, Your command is working fine as well, but the page still doesn't get reloaded. I tried concurrently , same result. Watch doesn't work. |
I've used npm-run-all like this.
|
Thanks @OSUblake, also your solution is working fine, but it doesn't solve my problem (I got browser-sync connected from the beginning. ) Problem is, that browser-sync doesn't reload the page on change (on save), so watch is not working properly. I think that the problem is somewhere in browser-sync and polymer serve communication, but this is just my unqualified assumption. This is my terminal log after your commands:
I tried many possible browser-sync command line options like |
Hmm... I just tested it, and it's working fine for me. This is what my terminal is showing. It looks pretty much the same as yours except for the UI External url, but I don't know if that would cause a problem.
On my computer, it can take a minute or two for polymer serve to start working. And sometimes I have to go to the browser-sync UI page and click reload all before it will show up in the current connections. |
Thanks, @OSUblake |
I was trying to say that sometimes on start up I have to go the UI page and click the reload all button before it starts auto-reloading, not every time. But I'm all out of ideas. |
Yeah, thanks a lot! @OSUblake It's not a big deal, really, just annoying... thanks for your terminal output, so I can see that |
I figured out what was the problem with my command... I didn't described subfolders (actions, components, reducers) like this |
Hi, I'm using Best regards |
Is there a way to use browser-sync with npm start maybe (for faster development?)
I changed one line and added one line to package.json:
... since I'm developing on c9.io where only ports 8080 and 8081 are opened.
Browser sync is connected, but I still need to refresh the page to see changes in my files...
The text was updated successfully, but these errors were encountered: