Skip to content

Instantly share code, notes, and snippets.

@derekbtw
Last active July 1, 2021 07:42
Show Gist options
  • Save derekbtw/d866b9e6e4e94405fcfca014aa0f9a17 to your computer and use it in GitHub Desktop.
Save derekbtw/d866b9e6e4e94405fcfca014aa0f9a17 to your computer and use it in GitHub Desktop.
polymer live reload
// npm install browser-sync --save-dev
// npm run dev
{
"name": "polymer-starter-kit",
"license": "BSD-3-Clause",
"devDependencies": {
"browser-sync": "^2.18.8",
"eslint": "^3.12.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^1.7.0"
},
"scripts": {
"dev": "polymer serve | npm run watch",
"lint": "eslint . --ext js,html --ignore-path .gitignore",
"test": "npm run lint && polymer test",
"watch": "browser-sync start --proxy localhost:8081 --files \"src/**/*.*, index.html, *.js\""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment