search

Home  >  Q&A  >  body text

How does browsersync monitor multiple html files?



I’ve been working on it for a long time, please give me some advice

AliceviaAlicevia2417 days ago1039

reply all(1)I'll reply

  • oswell

    oswell2018-07-04 09:08:47

    // --files path is relative to the project (directory) where the command is run
    browser-sync start --server --files "css/*.css, *.html"

    // If your file hierarchy is relatively deep, you may consider using ** (indicating any directory) to match any .css or .html file in any directory.
    browser-sync start --server --files "**/*.css, **/*.html"

    reply
    0
  • Cancelreply