← todo

browserify test, finding out how does it work

52c90ada8ce0dd77fd121433e20af8d785262dce · ovidiucs · Apr 15, 2014 03:41

+7 −2 · 2 files changed

  • app/bundle.js +5 −0
  • index.html +2 −2
diff --git a/app/bundle.js b/app/bundle.js
new file mode 100644
index 0000000..88174d3
--- /dev/null
+++ b/app/bundle.js
@@ -0,0 +1,5 @@
+(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
+//javascript-test.js
+
+console.log("Hallo");
+},{}]},{},[1])
\ No newline at end of file
diff --git a/index.html b/index.html
index 99a9e3b..082ac8c 100644
--- a/index.html
+++ b/index.html
@@ -8,6 +8,6 @@
 </head>
 <body>
 
-<script src=./app/javascript-test.js></script>
+<script src=./app/bundle.js></script>
 </body>
-</html>
\ No newline at end of file
+</html>