Skip to content

Instantly share code, notes, and snippets.

@eloyesp
Created May 12, 2021 13:46
Show Gist options
  • Save eloyesp/39105e714323307faff7128eeb5a250f to your computer and use it in GitHub Desktop.
Save eloyesp/39105e714323307faff7128eeb5a250f to your computer and use it in GitHub Desktop.
Browser Sync setup with shopify.
<script id="__bs_script__">//<![CDATA[
document.write("<script async src='https://localhost:3000/browser-sync/browser-sync-client.js'><\/script>")
//]]>
</script>
module.exports = {
"files": "/tmp/themeWatchNotify",
"logPrefix": "bs",
"browser": "brave-browser",
"reloadOnRestart": true,
"reloadDelay": 1000,
"reloadDebounce": 2000,
"https": true,
"socket": {
"domain": 'localhost:3000'
},
"injectChanges": false
};
themekit: theme watch --notify /tmp/themeWatchNotify
browsersync: browser-sync start --config bs-config.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment