Skip to content

Instantly share code, notes, and snippets.

@SOSANA
Last active August 15, 2020 22:48
Show Gist options
  • Save SOSANA/b1a14bc856b3d7f8afc62c2eedfceec8 to your computer and use it in GitHub Desktop.
Save SOSANA/b1a14bc856b3d7f8afc62c2eedfceec8 to your computer and use it in GitHub Desktop.
Google Chrome Live Server browser-sync setup for Linux or Windows OS
{
"name": "future-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "run-script-os",
"start:win32":
"browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"start:darwin:linux":
"browser-sync start --server --files '**/*.css, **/*.html, **/*.js, !node_modules/**/*' --directory --port 7777 --browser 'Google Chrome'"
},
"author": "SOSANA",
"license": "ISC",
"devDependencies": {
"browser-sync": "^2.18.13",
"run-script-os": "^1.0.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment