browser-sync: BrowserSync is watching, but doesn't track changes to my CSS file
Hi,
I know its here for issues and not for Q&A, but I don’t know where else I have to ask a question related to browser sync. Apologies for that, but hopefully someone can assist me
My command line skills are 0.something, but I managed to get everything installed and up & running and have the following output, because I have a localhost with a sub directory ‘artisan’ (my project)
unknown-00-23-6c-99-68-e4:~ user$ browser-sync start --proxy="localhost:8888" --files="artisan/css/*.css"
[BS] Proxying: http://localhost:8888
[BS] Now you can access your site through the following addresses:
[BS] Local URL: http://localhost:3000
[BS] External URL: http://192.168.1.64:3000
[BS] Watching files...
Like I said it works to some extend… I can open the Artisan website in the browser with the new local and/or external URL and see the ‘connected to browsersync’ notification, but changes I make and save in the css file, doesn’t automatically refresh/change the page that’s open and neither do the changes gets added to the command line.
Thus… I’m very confused and hopefully someone can see or can guess where I go wrong. Thanks!
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 17 (5 by maintainers)
I have experienced a similar issue, and the solution was too simple. If you are running on windows, be sure to run the cmd as an administrator. After I did this, the sync feature ran fine.
You’re not wasting my time - I’m happy to help if I can 😃
File paths are relative to your current working directory
so if you’re inside the directory
artisanwhen you start BrowserSync, the files argument should be--files="css/*.css"Does that help?