Skip to content

LiveSync issues with dev-sass #20

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

Closed
NordlingDev opened this issue Mar 7, 2017 · 5 comments
Closed

LiveSync issues with dev-sass #20

NordlingDev opened this issue Mar 7, 2017 · 5 comments

Comments

@NordlingDev
Copy link

Platform: iOS
TNS: 2.5.1

When livesyncing, the prepare-before and prepare-after hooks make the livesync refresh the app twice (or sometimes more). This makes it rather difficult to work with since it refreshes the app too often between the syncs. Is this possible to fix or get rid off?

@Liooo
Copy link

Liooo commented Mar 11, 2017

same here, compile runs many times everytime I make a change

@NordlingDev
Copy link
Author

@Liooo Yeah. In addition, after a couples saves, the livesync may have 5 processes running at the same time. Meaning, everything I do is multiplied by 5.

@cookingfox
Copy link

Same here, of course it's nice to have livesync refresh after changing .scss files, however this causes some looped operations where livesync first gets triggered by changing the .scss and a second time by the generated/updated .css file.

@toddanglin
Copy link
Contributor

There are a number of LiveSync issues with the 2.5.x versions of the NativeScript CLI. The latest version of this plugin has been patched to work with the upcoming NativeScript 3.0.0, and remains backwards compatible (with LiveSync support) in versions 2.4.x (and earlier) of the {N} CLI.

I'd suggest either downgrading your CLI to 2.4.x or going ahead and upgrading to the 3.0.0 RC.

To use the latest version of this plugin for now, do this:

$ tns plugin remove nativescript-dev-sass
$ tns plugin add nativescript-dev-sass@rc --save-dev

Let me know if this works for you.

@ManuelSch
Copy link

I'm still experiencing this exact issue. Any suggestions how to solve it?
Since css in nativescript is (at least to me) mostly try-and-error the double-reload problem makes styling real tiring...

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

5 participants