Last active
August 29, 2015 14:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
font-size: 3rem; | |
color:red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var module1 = function(){ | |
function HelloWorld(){ | |
alert('Hello World 1'); | |
} | |
return { | |
'hello': HelloWorld | |
} | |
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var module2 = function(){ | |
function HelloWorld(){ | |
alert('Hello World 2'); | |
} | |
return { | |
'hello': HelloWorld | |
} | |
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p { | |
font-size: 1rem; | |
color:purple; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment