Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrowserSync does not call router with grunt-php when reload #145

Open
simongcc opened this issue May 4, 2017 · 0 comments
Open

BrowserSync does not call router with grunt-php when reload #145

simongcc opened this issue May 4, 2017 · 0 comments

Comments

@simongcc
Copy link

simongcc commented May 4, 2017

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

@simongcc 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant