Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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