Skip to content

Instantly share code, notes, and snippets.

@franklinjavier
Last active December 27, 2022 00:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franklinjavier/c7ab7794469820f4b00f to your computer and use it in GitHub Desktop.
Save franklinjavier/c7ab7794469820f4b00f to your computer and use it in GitHub Desktop.
Usando browser-sync no Windows

O browser-sync é um ótimo módulo nodejs. Sua principal funcionalidade é a sincronização de eventos entre os dispositivos conectados. Ou seja, se você scrolla a página, esse evento será replicado em todos os dispositivos magicamente \o/. Dessa forma, tornamos os testes de web apps muito mais produtivos.

  1. Baixar e instalar o Nodejs
  2. Abrir o programa "Node.js command prompt"
  3. Baixar o browser-sync, para isso basta digitar no terminal npm install -g browser-sync
  4. Por fim, execute o comando browser-sync start --proxy "http://www.uol.com.br"

Para mais detalhes: https://github.com/shakyShane/browser-sync

@lauraperroni
Copy link

Obrigado!

@franklinjavier
Copy link
Author

Obrigado!

Imagina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment