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

No browser change without reload (Gulp & Drupal) #534

Closed
alex4allofyou opened this issue Mar 25, 2015 · 3 comments
Closed

No browser change without reload (Gulp & Drupal) #534

alex4allofyou opened this issue Mar 25, 2015 · 3 comments

Comments

@alex4allofyou
Copy link

I am working on a Drupal-site, locally via Wamp, I use Gulp to watch and process Less-files. Problem is, I do not see any changes when editting files, only with reload of browser... I have tried Livereload too, but that one only works the first time, than it crashes.

This is the url of a site in wamp: http://localhost/sitename/

I start Gulp watch, than I open Browser-sync in CWD with this line:
browser-sync start --proxy "http://localhost/sitename/" --files "css/*.css"

When I do it opens the site, I see "Connected to Browsersync" with this url:
http://localhost:3000/sitename/

It watching files and also register editted files, yet, not browserinjections... The UI can be opened, everything seems to be working, but the most important part it leaves out. Very frustrating.

I also downloaded Visual Studio as recommended, site has a Body-tag, the only thing that is different with Drupal is that the css-files are not seen as a link when you look at the sourcecode, but plain text, but that is normal for Drupal, could that be the cause?

OS: Windows 7
Browser: Latest Firefox

@alex4allofyou alex4allofyou changed the title No browser change without reload No browser change without reload (Drupal) Mar 25, 2015
@alex4allofyou alex4allofyou changed the title No browser change without reload (Drupal) No browser change without reload (Gulp & Drupal) Mar 25, 2015
@OnkelTem
Copy link

Howdy!
I'm a Drupal user too. Recently had the similar issue. Drupal uses quirky @import for adding CSS, and this is not supported by BS afaik. Please try with this simple module:
https://www.drupal.org/project/link_css
It will replace @imports with normal <link>s

@alex4allofyou
Copy link
Author

That did the trick!

The stupid thing is, I did notice those imports, like I wrote, but because BS did change the addresses I thought it was not the major cause.

Thanks for the help and module-link !!!

@hkirsman
Copy link

hkirsman commented Jul 7, 2016

Nice! This works!

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

3 participants