You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using grunt-browser-sync with grunt-php.
Since I have put the css files in a temporary folder .tmp outside app folder during development, so I am using a router to load the css files. When it is first run, php is started and then BrowserSync monitor changes. When css changes is detected, it reload. However, because the path of .tmp does not exist to the php file, router need to be called in order to load the css file correctly.
In this case, BrowserSync seems not call the router and just reload the page normally.
I think it is a feature or enhancement rather than bug. If there is any other way or better way to make use of .tmp folder are welcomed to suggest.
Many thanks.
Updated 2017-05-05
To illustrate the problem, I have created a demo and put in the git, please visit and fork a version to test: grunt-browser-sync-demo
The text was updated successfully, but these errors were encountered:
simongcc
changed the title
BrowserSync does not call router with grunt-php when repload
BrowserSync does not call router with grunt-php when reload
May 5, 2017
I am using
grunt-browser-sync
withgrunt-php
.Since I have put the css files in a temporary folder
.tmp
outsideapp
folder during development, so I am using a router to load the css files. When it is first run, php is started and then BrowserSync monitor changes. When css changes is detected, it reload. However, because the path of .tmp does not exist to the php file, router need to be called in order to load the css file correctly.In this case, BrowserSync seems not call the router and just reload the page normally.
I think it is a feature or enhancement rather than bug. If there is any other way or better way to make use of .tmp folder are welcomed to suggest.
Many thanks.
Updated 2017-05-05
To illustrate the problem, I have created a demo and put in the git, please visit and fork a version to test: grunt-browser-sync-demo
The text was updated successfully, but these errors were encountered: