Browser Sync

From Logic Wiki
Jump to: navigation, search


Installation

$ npm install -g browser-sync

https://www.browsersync.io

Using in VS

External Tools > Add

  • Title: BrowserSync
  • Command: C:\Windows\System32\cmd.exe
  • Arguments: /C browser-sync start --files "Content/auden/*.less, ./**/*.cshtml" --proxy localhost:50927 --logLevel debug
  • Initial directory: $(ProjectDir)

Browsersync Command Line Usage

$ browser-sync start [options]     Start Browsersync
$ browser-sync init                Create a configuration file
$ browser-sync reload              Send a reload event over HTTP protocol
$ browser-sync recipe [name]       Generate the files for a recipe