How do I require all files in a folder in node.js?  need something like:  files.forEach(function (v,k){   // require routes   require('./routes/'+v); }};...
Are there any libraries for in-browser javascript that provide the same flexibility/modularity/ease of use as Node's require?  To provide more detail: the reason require is so good is that it:   Allows code to be dynamically loaded from other l...
OK, i have searched high and low but cannot reliably deterrmine if this is or is not possible with webpack.  https://github.com/webpack/webpack/tree/master/examples/require.context Appears to indicate that one can pass a string to a function and it...
I am trying to require a file and afterwards pass it to a var. I am following this tutorial to create a authentication system. After writing the server.js file and trying to compile I got a bson error therefore I changed the line that required the re...
Are there any projects that used node.js and closure-compiler (CC for short) together?  The official CC recommendation is to compile all code for an application together, but when I compile some simple node.js code which contains a require("./MyL...
I'm trying to get require.js to load modules on the server-side with Java 6 and Rhino.  I'm able to load require.js itself just fine. Rhino can see the require() function. I can tell because Rhino complains that it can't find the function...
I have the situation where i need access to multiple directive controller methods.  I can access a method from a parent directive using the require like so:      require:"^parentDirective"   but I also need to access a method within a seperat...
I'm new to RequireJS world. I'm getting Load Timeout error for one of the modules, which I've already defined in the main file. I don't see any request in Network tab of Chrome, probably because require has already loaded that file ea...
This is probably a lame question, but how can you achieve the same thing as require() (Node.js) in regular JavaScript?  Some help would really be appreciated....
Ace Editor has Live Syntax Checking, which can check code as it's being typed for syntax errors.    I have a Rails 3.2 site with the Ace file included on each coding page. I added a require statement to the javascript to tell Ace where the worker...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.