Skip to content

Instantly share code, notes, and snippets.

@keighty
Created October 21, 2016 19:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save keighty/9e5eb136c27b6a4f98f7c4f49d749256 to your computer and use it in GitHub Desktop.
browser-sync project setup for easy local web server
module.exports = {
"files": ["*html","*js","*css"],
"server": true,
"port": 3000,
"https": true,
"routes": {
"/foo": "foo"
}
};
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FOO</title>
</head>
<body>
<p>
This is a foo
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>INDEX</title>
</head>
<body>
<p>
This is the index
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment