browser sync for linux code example
Example: 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