Starts a browserSync Static server with watch mode at
:3000 by default. The UI for browsersync is available at
- Right click on the folder from your VSCODE explorer menu. And click on
- This will start the server at
localhost:3000 and open up your default browser. And serve the
index.html file in the directory if present.
- Once started, you can manage the running server on left menu status bar. Which will show the server is running at. Once you click on it, it will give you reload or stop option.
- Once stop/reload is clicked, it will stop or reload the browsersync server.
Currently, you can only run one server at a time in the workspace. Starting another server within the workspace will close the current running server and spinup a new one at localhost:3000.
Browsersync allows for 2 options:
openBrowser: Whether you want to trigger a browser open when server is started.
options: Pass browsersync options from https://www.browsersync.io/docs/options
Clone the repo and
browsersync folder. Run
npm install, and you are ready for development.
Raise issues here.