easyserve
v1.0.1 serve browser-sync
easyserve
browser-sync in an easy to use TypeScript class
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
import { EasyServe } from 'easyserve'
let myEasyServe = new EasyServe('/some/path/to/webroot', 8080)
myEasyServe.start().then(() => {
// this is executed when server is running guaranteed
myEasyServe.stop() // .stop() will work even if not waiting for server to be fully started
})
myEasyServe.reload() // reloads all connected browsers of this instance
For further information read the linked docs at the top of this README.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy