-
-
Notifications
You must be signed in to change notification settings - Fork 197
Provide a way to use hmr by default for a project #4389
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
Yes, but we need to make sure all the 'flavors' of NS work nicely with HMR...working on the Vue piece of this |
As long as HMR works reliably and predictably. I'm still seeing oddities with Angular --hmr enabled. Can share on screen if need be (ping via Slack if needed) |
As @jlooper said once it works on all |
Acceptance Criteria:
|
To achieve this, you can set |
Is your feature request related to a problem? Please describe.
Currently HMR requires passing
--hmr
option on every command. When I forget to pass it, the application is rebuild and after that I have to stop the command and execute it again, which triggers another rebuild. This slows down my application development.Describe the solution you'd like
Provide an easy way to have hmr working out-of-the-box, i.e. when I execute
tns run [<platform>]
hmr to be set by default. It would be great if this feature is enabled by default for newly created projects and if I'm able to enable it for old projects. For example, it can be handled by handling having a property in nsconfig.json that enables HMR.Describe alternatives you've considered
No
Additional context
HMR provides the best development experience, i.e. application is not restarted when you change
.ts
,.js
,.html
,.xml
,.css
,.scss
file in the app, so this improves the experience with several seconds for each change. Also the changes are synced much faster than in normal livesync process.The text was updated successfully, but these errors were encountered: