Top "Requirejs" questions

RequireJS is a JavaScript file and module loader.

Webpack with requirejs/AMD

I'm working on a new module for an existing project that still uses requireJS for module loading. I'm trying to …

javascript webpack requirejs frontend amd
RequireJS: Local fallback for if CDN fails

In my backbone app, I need to provide a fallback for each required file, in the case that the CDN …

javascript requirejs cdn
How to use npm installed requireJS for browser

While requirejs is capable of using npm-installed modules, how do I use requirejs in first place if itself is installed …

javascript npm requirejs
Webpack: expressing module dependency

I'm trying to require the bootstrap-webpack module in my webpacked application. It appears to need jQuery, since the bundled javascript …

requirejs amd webpack
How to exclude certain requireJS files from uglifying/optimizing

I have a working requirejs project that is using grunt for building and deployment. If using no optimization at all, …

requirejs require gruntjs uglifyjs uglifyjs2
Interacting with require.js modules from the Firebug/Chrome console?

I'm just getting started with require.js. I have successfully wrapped jquery, some plugins, and a couple of my own …

javascript firebug google-chrome-devtools requirejs
Mocha + RequireJS = AMD testing

I have a hard time connecting Mocha to RequireJS based application, may be You'll be able to come up with …

javascript node.js requirejs mocha.js js-amd
Is it a bad practice to use the requireJS module as a singleton?

I plan to use the following pattern to make use of the requireJS based module to act as a singleton. …

javascript requirejs
Working project structure that uses grunt.js to combine JavaScript files using RequireJS?

I have some projects that use RequireJS to load individual JavaScript modules in the browser, but I haven't optimized them …

javascript build requirejs gruntjs
configuring requirejs reading from node_modules

I'm trying to setup a nodejs project to use requirejs. I call my program with node r.js ./config/main.…

javascript node.js coffeescript requirejs node-modules