Skip to content

Instantly share code, notes, and snippets.

@vl4dt
Created June 8, 2015 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vl4dt/5b3a6c7ec6741d31f1a7 to your computer and use it in GitHub Desktop.
Save vl4dt/5b3a6c7ec6741d31f1a7 to your computer and use it in GitHub Desktop.
Browser Sync: sample config file
/**
* Require Browsersync
*/
var browserSync = require('browser-sync');
/**
* Run Browsersync with server config
*/
browserSync({
browser: [
"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
"chrome", // Google Chrome Canary
"firefox"
],
https: false,
proxy: {
target: "http://global3.laureate.net",
middleware: function (req, res, next) {
console.log(req.url);
next();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment