question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to watch files different than index.html

See original GitHub issue

Hello,

In my config file I have files: "*", since I have several HTML files in addition to index.html.

But how do I make Browser Sync watch these other files that have different names? i.e. about.html, contact.html, etc.

I remember when I was learning (and I still am as you obviously tell) how to get Browser Sync to work I was able to just double click on any of my HTML files, make changes to them and they would then get refreshed… but I honestly forgot how I made that happen.

Any help is greatly appreciated.

Thanks.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shakyShanecommented, Dec 23, 2013

Change the server.baseDir option to this & try again - you shouldn’t need the snippets if you’re using the server.

    server: {
        baseDir: "./"
    }
0reactions
AswanthGitcommented, Aug 27, 2020

use : browser-sync start --server --directory --files “*” to load all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does index.html looks different from other .html files?
They are different because they are two completely different HTML files. Once contains your index, and one contains your gallery.
Read more >
Viewing HTML-files
HTML : Viewing HTML-files · start your browser · under the "File" menu click on "Open Page" · in this new box, click...
Read more >
Default file other than index.html - Stack Overflow
You can set the files for the server to look for to index.json (as well as index.html and index.htm which are common on...
Read more >
How to add a different file than index.html on nginx?
When I access mywebsite.com , I see index.html . How could I make mywebsite.com/scnd_page/ to point to send_page.html ? I've tried some ...
Read more >
Apache Display / Change a Default Page Other Than index.html
html or index.php. Advertisement. The DirectoryIndex directive sets the list of resources or file to look for, when the client requests an index...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found