Skip to content

Instantly share code, notes, and snippets.

@yeukhon
Created August 23, 2014 18:31
Show Gist options
  • Save yeukhon/1501a778a27bf6ebc11d to your computer and use it in GitHub Desktop.
Save yeukhon/1501a778a27bf6ebc11d to your computer and use it in GitHub Desktop.
browserify question
var Foo = function () {
alert("Hello! You've just called Foo()");
}
module.exports = Foo
<html>
<body>
<script src="bundle.js"></script>
</body>
</html>
var Foo = require("./foo.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment