Last active
July 21, 2019 03:34
-
-
Save zeert/5f9512470f0ce4c3d3cf516eaa993cf7 to your computer and use it in GitHub Desktop.
Laravel & Browser Sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Primero hay que instalar las dependencias de BrowserSync con Yarn | |
yarn add browser-sync | |
# Despues añadir esto al final del body | |
<script id="__bs_script__">//<![CDATA[ | |
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.26.7'><\/script>".replace("HOST", location.hostname)); | |
//]]></script> | |
# Despues ejecutar el comando | |
php artisan serve & yarn run watch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment