Skip to content

Instantly share code, notes, and snippets.

@DalSoft
Last active August 29, 2015 14:09
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 DalSoft/575971dd86cd71107e6d to your computer and use it in GitHub Desktop.
Save DalSoft/575971dd86cd71107e6d to your computer and use it in GitHub Desktop.
Introducing Brunch Below is a trivial example, it's obviously not a production quality and is for brevity just to show brunch working http://www.dalsoft.co.uk/blog/index.php/2014/10/15/introducing-brunch
h1 {
font-size: 3rem;
color:red;
}
var module1 = function(){
function HelloWorld(){
alert('Hello World 1');
}
return {
'hello': HelloWorld
}
}();
var module2 = function(){
function HelloWorld(){
alert('Hello World 2');
}
return {
'hello': HelloWorld
}
}();
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Brunch example</title>
</head>
<body>
<h1>Really dumb example</h1>
<p>This is a really dumb example to show how brunch.io works.</p>
<link href="/css/vendor.css" rel="stylesheet" type="text/css">
<link href="/css/app.css" rel="stylesheet">
<script src="/js/vendor.js"></script>
<script src="/js/app.js"></script>
<script>
module1.hello();
module2.hello();
</script>
</body>
</html>
p {
font-size: 1rem;
color:purple;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment