NativeScript / NativeScript/nativescript-cli

[FR] Hmr assets special handling

Aberta
#4,576 9 comentários 0 reações 1 responsável Ver no GitHub

@rosen-vladimirov já está trabalhando nisso.

Desde 13/5/2019.

Linguagem predominante
JavaScript
Estrelas
1.1k
Forks
204
Merge médio
1d 9h
PRs com merge (30d)
8

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.