Cheat Sheet速查表
跳转到主要内容

Browsersync 速查表

本文根据 Devhints / Browsersync 翻译。代码示例及版本范围沿用原文。

关于

npm i -g browser-sync

启动服务器

browser-sync start --server <path> --files='**/*.html, **/*.css'

选项

  --port=N
  --proxy="http://127.0.0.1:3000"