BrowserSync
const elixir = require("coldbox-elixir");
module.exports = elixir(mix => {
mix.browserSync();
});[BS] Copy the following snippet into your website, just before the closing </body> tag
<script id="__bs_script__">//<![CDATA[
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.2.12.5.js'><\/script>".replace("HOST", location.hostname));
//]]></script>Specifying a Proxy
const elixir = require("coldbox-elixir");
module.exports = elixir(mix => {
mix.browserSync({
proxy: "localhost:50608"
});
});Default Options
Custom Options
Last updated