-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support querySelector and querySelectorAll #6
Comments
Thanks for your issue. Hm that is weird, it should compile. Does everything else in the javascript file compile right? Moreover, are |
I think I found the problem. You were correct in suggesting that those id/classes weren't a part of any style sheet, there were just present in the HTML and JS... at first glance when things weren't working, this stood out, hence why I suggested it. The real problem comes down to:
vs
In the above you can see that rcs isn't preserving white in the strings in js files. I was thinking of just going Any chance you think this might be an easy fix? |
Oh yes, that is indeed a bug. I will try to fix this asap. Btw, usually it is recommended to run |
Will do and thanks for your help! I'll see what I can do to switch tasks around. |
A possible workaround for now would be following: ...
preloadSlide('#js-carousel-slide-1', '/img/front-page/hero1.svg', function () {
var whitespace = ' ';
carousel.className += whitespace + 'is-initialized';
});
... |
Ya I thought about that, have to see what it produces. |
WHOOT! Thanks for the quick response. Will this require a rev to the package |
Nope, I will update |
@avanderhoorn you can now install |
Huge thanks!!! 👍 |
I just tried out
gulp-rcs
for a static site that I'm ceating and everything seems to work well except that the js parser doesn't seem to supportquerySelector
andquerySelectorAll
. My guess is that its because it doesn't match'xxx'
or"xxx"
. In the below cases it can have a leading.
or#
and that there can be more complex patterns (i.e..xxx .ttt
).Here is my sample thats currently failing:
The text was updated successfully, but these errors were encountered: