sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 346 forks source link

Request : Auto Reload #629

Closed jm-kumaresh closed 5 years ago

jm-kumaresh commented 6 years ago

Any idea adding auto reload the browser when there is a changes in file.

omichelsen commented 6 years ago

You can do it with browser-sync.

Nadeeshyama commented 6 years ago

I use livereloadx. Example package.json file:

"scripts": {
    "server": "harp server",
    "livereload": "livereloadx -s public --include '*.{json,less,scss,js,ejs,jade,md,pug}'",
    "dev": "npm-run-all --parallel server livereload",
    "start": "npm run dev",
    "compile": "harp compile"
}
misterhtmlcss commented 5 years ago

@omichelsen Thank you for sharing that article. Also @Nadeeshyama that's a great set up you have for your package.json as well. Thank you guys.