Skip to content

Working with a Config File

Michael Kolber edited this page Jul 10, 2018 · 24 revisions

Whilst BrowserSync can be used directly from the Command-line - you will probably want to configure each of your projects separately. You can achieve this by having a different bs-config.js file in the root of each one.

Step 1

To create a config file, move into your project directory (the root folder of your website) and run:

browser-sync init

Step 2

Configure options.

Step 3

With all the configuration options set, you're ready to run this command (in the same dir as the bs-config.js file):

browser-sync start --config bs-config.js