-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Grunt watch triggers entire page reload #19544
Comments
Hi @pooshok. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @pooshok do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @pooshok i'm not able to reproduce following steps you described in my case less changes triggers styles refresh. |
Hi @engcom-backlog-nazar. Looking to your "grunt watch --verbose" output I see you have "Live reloading" fired twice. So maybe the problem is still there. |
@pooshok |
same issue. |
@pooshok @Fredwak Since magento team most of the times don't really care enough to solve simple problems like this one, I came up with a simple solution to prevent entire page reloads: Just comment out the following line: https://github.com/magento/magento2/blob/2.3-develop/dev/tools/grunt/configs/watch.js#L17 This way Live reload won't be triggered by |
great @aledefreitas ! |
it's still an issue in 2.3.x — we confirmed it in one of the core principles of theming in magento trainings. #19544 (comment) fixed it |
For me, this comment solved the problem. Thanks!!! |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @torhoehn. Thank you for working on this issue.
|
Preconditions
Steps to reproduce
<theme>
<theme>
Expected result
less changes triggers styles refresh
Actual result
livereload triggers twice: first - refresh styles, second - reload entire page
Proposed solution
Revert back this #10836
The text was updated successfully, but these errors were encountered: