-
-
Notifications
You must be signed in to change notification settings - Fork 197
CLI tool doesn't restart app if HTML/CSS file was modified #2780
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
Comments
The problem is that CLI do not restart the app. |
I think this is happening when routing.
In this case it is not updating html view |
@dtopuzov , the issue is still reproducible for CSS files, but in a more subtle way: now |
Hi @otaran thanks for the report! Engineering team will consider possible options on Monday and we will update the issue. |
Hi @otaran It sounds like another case -> When you navigate to some page and then you sync we do not preserve application state. If we do not restart the app you are in current situation -> back navigation do not work. Both situations are not ideal, so just logged separate issue for the problem, see #2814 |
@dtopuzov I don't mind if |
Is there any update on this? The same issue @otaran is having is really slowing UI development down. |
From what I've seen during {N} 3.0 webinar it appears that syncing HTML/CSS files without restarting the app is actually a feature of CLI 3.0. However, there are two issues affecting Angular-based apps:
In #2819 @yyosifov mentioned that it is actually a bug in Angular-Nativescript integration, so we will get fast sync in Angular-based apps soon! 🎉 |
Hi @otaran @vultix let me explain the case: In order to achieve better user-experience (reduce the time for sync and restart after that) we will restart Angular application itself (see NativeScript/NativeScript#4215) and CLI will not force restart entire application. Fix is already available in How to test:
Result: Change is applied, NG app is restarted internally, no full restart of the native app. |
Hi, catched the same behaviour with nativescript-vue-webpack-template To reproduce download fallow template usage docs and then try to change some .css or .scss and see that tns doesn't reload styles while you don't restart app. This is so annoying =( Please, help ) |
Hi @alekspetrov Can you please log it as separate issue since it is vue specific. |
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes, this works in version
2.5.x
and is broken in3.0.0
.Tell us about the problem
tns run ...
will not restart the app if any HTML or CSS file was modified. It does restart the app if TS or JS file was modified. The output oftns run ios
look like this:Which platform(s) does your issue occur on?
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
test-html-css-sync.zip with
tns run ios
items.component.html
oritems.component.css
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
No.
The text was updated successfully, but these errors were encountered: