Difference between revisions of "Browser Sync"

From Logic Wiki
Jump to: navigation, search
(Created page with "Category:HTML Category:Node.js Category:Tests == Installation == $ npm install -g browser-sync [https://www.browsersync.io https://www.browsersync.io] == Using...")
 
(No difference)

Latest revision as of 08:42, 14 June 2017


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