Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the included Gruntfile.js Browsersync is not detecting any file changes. This can be fixed by changing
'css/{,*/}*.css'
to
'css/**/*.css'
Same for alle other files types.
Apparently this is the official Grunt pattern syntax?
Comment | File | Size | Author |
---|
Comments
Comment #2
leahtard CreditAttribution: leahtard at The Jibe commentedThanks johnnny83!
If you have a patch ready, upload it here and we can get it applied. Otherwise, we will try an get a fix in this week.
Cheers, Leah
Comment #3
johnnny83 CreditAttribution: johnnny83 commentedUnfortunately I don't know how to make a patch :(
Comment #4
Znak CreditAttribution: Znak at Drupal Ukraine Community commentedHold, I did patch for this module
Comment #5
johnnny83 CreditAttribution: johnnny83 commentedYou forgot the other files types...
Comment #6
Znak CreditAttribution: Znak at Drupal Ukraine Community for Drupal Ukraine Community commentedOh, I'm sorry. Here is updated patch
Comment #7
leahtard CreditAttribution: leahtard at The Jibe commentedThanks for the patch!
Unfortunately, I cannot replicate the issue. BrowserSync works for me using the existing wildcard pattern. Maybe there are other environment factors coming into play here? Having said that, I tested the changes in the patch and the confirmed everything still works for me. I am going to leave this open for a little while longer for further testing.
Cheers, Leah
Comment #8
joelpittetCan you provide the environment you are having issues with?
Comment #9
johnnny83 CreditAttribution: johnnny83 commentedI'm using Windows 7 with Git Bash, if this is what you mean...
Comment #10
Znak CreditAttribution: Znak commentedleahtard, if everything is ok, you commit my patch?
Comment #11
joelpittetYes johnny that's what I was looking for because this could be environment related that info is valuable, thank you
Comment #12
leahtard CreditAttribution: leahtard at The Jibe commentedI looked into this issue a little more. The syntax we are using,
'css/{,*/}*.css'
, seems to be interpolated by node-glob (https://github.com/isaacs/node-glob) -- which is suppose to be a part of node (?). When searching, I saw a lot of people experiencing issues within a Windows environment but found no definitive solution. In my testing, the patch has no negative effect in my Mac environment so I am going to apply it. If anyone experiences any issues, please let us know.Cheers, Leah
Comment #13
leahtard CreditAttribution: leahtard at The Jibe commentedComment #15
leahtard CreditAttribution: leahtard at The Jibe commented