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

Add Browsersync options to scripts task #1074

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tfoxy
Copy link

@tfoxy tfoxy commented Apr 13, 2016

Right now, when not using a js preprocessor, the page is refreshed multiple times in a short time.
I'm using Django on the backend and the local server hangs for a long time because of the multiple reloads (its faster to kill it and restart it). This is very noticeable when there are more than 30 js files.

This PR would fix this problem and possibly #1067.

A filter is also provided to only reload the changed script and stop unwanted files from being reloaded. I did this so that I can inject a controller instead of refreshing the browser. The way I pass the changed file is a little ugly, so if you want I can exclude it from the PR.

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

Successfully merging this pull request may close these issues.

1 participant