How to use and merge JS modules into 1 file?
问题 I would like to create 1 single javascript file out of multiple files and modules to ship as one single js file for a small library that will be used in the browser (and reuse some part on nodejs). How can I achieve this? (function() { // Modules are minified var blake = require('blakejs'); // The "entire" module in here ~350 lines... // Other files are obfuscated // File1.js var first = function() {} first.prototype.doHash = function() {} // File2.js var second = function() {} second