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

LiveSync Doesn't Work #44

Closed
peterkrieg opened this issue Sep 19, 2017 · 5 comments
Closed

LiveSync Doesn't Work #44

peterkrieg opened this issue Sep 19, 2017 · 5 comments

Comments

@peterkrieg
Copy link

Hello,

Using Nativescript 3.2.1 and nativescript-dev-sass 1.3.2, Live Sync doesn't work. When sass file is changed, it triggers a full refresh of app.

Does anyone know if there is a combination of versions where livesync works? Thanks for any help!

@peterkrieg peterkrieg changed the title Live Sync Doesn't Work LiveSync Doesn't Work Sep 20, 2017
@vtjon
Copy link

vtjon commented Oct 27, 2017

Just wondering if anybody has suggestions on this?

@zbranzov
Copy link
Contributor

zbranzov commented Dec 4, 2017

What is the expected behavior? Currently, using nativescript-dev-sass 1.3.5 and tns 3.3.1 the changed scss files are transpiled to css and then the app is refreshed to reflect the changes which seems reasonable.

@vtjon
Copy link

vtjon commented Dec 4, 2017

I believe with regular CSS, it doesn't restart the app completely. I also noticed some behavior when I was in "tns debug" vs "tns run". Things seemed to work slightly better with run. It also seemed that the fact that SCSS changes triggered livesync vs the compiled CSS files was causing some weird behavior. I ended up forking this project to just make some emergency fixes and stop using the SASS child-process. This made things a little bit better but I think I still have some holes.

This likely doesn't give you much specific information to go on. I can try to create a repo of the issue at some point but it might be a little while.

@zbranzov
Copy link
Contributor

zbranzov commented Dec 4, 2017

Thanks for the clarification. I'll try to investigate it further.

@zbranzov
Copy link
Contributor

zbranzov commented Dec 4, 2017

I found that this is the normal behavior when it comes to scss files and logged a bug for the CLI. For css, xml and html changes the view reloads and reflects the change but for scss files CLI refreshes the whole app.
I'm closing this in favor of NativeScript/nativescript-cli#3243

@zbranzov zbranzov closed this as completed Dec 4, 2017
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

No branches or pull requests

3 participants