📌  相关文章
📜  linux 的浏览器同步 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:39.886000             🧑  作者: Mango

代码示例1
# 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