NativeScript / NativeScript/nativescript-cli

[FR] Hmr assets special handling

Abierto
#4,576 9 comentarios 0 reacciones 1 asignado Ver en GitHub

@rosen-vladimirov ya está trabajando en esto.

Desde el 13/5/2019.

Lenguaje dominante
JavaScript
Estrellas
1.1k
Forks
204
Merge medio
1 d 9 h
PR fusionados (30 d)
8

Descripción

Now that HMR is out of beta, i would like to use to it to its fullest.
In my app i want to 'catch" HMR sync events for some files (files in a specific dir) and do a custom reloading from within the app.
To be more precise so that you understand the request. I want to implement HMR for map style files reloading:

  • run the app with HMR
  • modify the styles files in your favorite text editor
  • livesync triggered
  • reload map by reloading style

I see there are some way to know that a live sync has been triggered. CAn it be used to do something like this? If so is there any doc/example showing a bit how to do it.

Thanks

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.