browserify test, finding out how does it work
+7 −2 · 2 files changed
-
app/bundle.js+5 −0 -
index.html+2 −2
@@ -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 @@ -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>