-
Notifications
You must be signed in to change notification settings - Fork 119
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
Browser-Sync does not reload CSS #48
Comments
You're welcome!! First question: is the CSS file loaded in Drupal using As far as the cd pattern-lab
composer update |
Hello Evan. |
Do you have |
Yep, also the openBrowserAtStart function works with the correct url. |
Hmm.... not sure; are you able to get css style injection working using the |
Yep, works with "browser-sync start --files="./dest/*.css" --proxy="reko.dev"" |
I still have the browser sync error with the reloading, but it's actually not what I would like to ask: Do I miss something? |
I will close this, as it didn't happen anymore with newer projects. |
Hello guys!
At first I want to thank you so much for your effort and the work you have done through this theme. It's exactly what I always wanted for Drupal and I planned to build on my own, so thank you so much!
So here my problem with Browser-Sync:
When I start gulp with the patternlab, everything works very well. The styles and the code gets update etc. (except for the small fact, that after starting the script, no style is visible, but after the first change, everything looks right), but when I change the gulpconfig to use my local project URL so it would reload my drupal 8 projekt, it does not reload the CSS.
It starts normally (http://pasteboard.co/6VmeLPhlu.png), but when changing something in the CSS, it stops after generating the css (http://pasteboard.co/6VmQxXj3t.png). Nothing happens after that. It still generates every change in CSS, but I have to reload on my own.
Interesting thing about this: When I change something in the twig files, it seems to break somewhere because of the missing Drupal Twig function "url"
PHP Fatal error: Uncaught Twig_Error_Syntax: Unknown "url" function in
. (http://pasteboard.co/6VpEj64Vj.png).The best thing about this, after the template task breaks, it reloads the css correctly in the browser (http://pasteboard.co/6VvQPn9fH.png).
Do I miss something?
Thanks in advance :)
The text was updated successfully, but these errors were encountered: