Greetings.
Trying to befriend Gulp and BrowserSync .
With HTML everything is fine, but there is no HTML in the project, only JS .
But it doesn’t work with JS all, switching to the script from under the server running will generate the script code (in the correct MIME) and without updating in the browser.
At one of the dozens of sites where I was looking for a solution, it was said that the update requires the <body></body> to enable the synchronization scripts.
Total 2 questions:
- How to force BrowserSync to quickly update scripts / styles in a browser?
- How to execute a script without
HTML?
The solution, in my opinion, is quite simple: wrapping scripts in markup implicitly.
Now a crutch is used in the form of a completely extra HTML file to which the script is connected.
This slightly overshadows total satisfaction with a good product.
Thank you for attention.
bs, right up to routers and all this with a reactor and the like, but even the most pornographic thoughts cannot lead to at least one answer - why is this necessary? And if the browser expectshtml, is it able to executejs? - user220409HTML, which I do not have. - user207618