browser sync code example

Example 1: browser sync for linux

# To add broswser-sync into sublime text linux/ubuntu machine follow this steps.
sudo apt-get remove nodejs npm #to remove existing node package.
curl -sL https://deb.nodesource.com/setup_8.x 116 | sudo -E bash -
sudo apt-get update && sudo apt-get install yarn
sudo apt-get install -y nodejs
node -v # to check the version of installed node package
npm install -g browser-sync # to install browser-sync package.
browser-sync start --server --files "*.html, css/*.css,*js,js/*.js" # it will run current directory files into default browser

Example 2: browser sync

../
chakracore-nightly/                                17-Nov-2019 05:30                   -
chakracore-rc/                                     23-May-2018 21:45                   -
chakracore-release/                                17-Nov-2018 08:25                   -
docs/                                              04-Jan-2021 18:14                   -
next-nightly/                                      30-Aug-2015 08:29                   -
nightly/                                           07-Jan-2021 06:30                   -
rc/                                                14-Dec-2020 11:00                   -
release/                                           04-Jan-2021 18:14                   -
test/                                              30-Dec-2020 15:30                   -
v8-canary/                                         05-Jan-2021 10:30                   -