In a Backbone and requirejs 2x based application, only when the application is combined through grunt-contrib-require, window.onerror stops trapping errors.
The window.onerror function id declared before and outside the Backbone application and send…
I am using RequireJS to modularize my code. The website I am using will have several distinct page categories. For each one of them I want to load general JS file with all the dependencies that exist across all page categories, jQuery being most…
I have issues with compile multi-mainConfigFile in grunt-contrib-requirejs.
I don't know how to configure the gruntfile.js,although read page 'Grunt & requirejs optimizer for a multi app project'.
I have thesee files
.
├── index.js
├──…
I have one problem. In my project i'm using runtime module injection. When i use require.js framework all works ok. But when i try to make solid js file with grunt-contrib-requirejs it doesn't find my injecting module.
piece of my code whre i'm…
I have a working web app using require.js and I'm trying to have all files be minified and concatenated. I'm using grunt-contrib-requirejs to compile the whole project into a bundle.js file, like so:
requirejs: {
compile: {
…
I am using the goog plugin for requirejs like this:
define(['underscore', 'backbone', 'marionette', 'goog!visualization,1,packages:[geomap]'],
function(_, Backbone, Marionette) {
...
});
The code works fine until I build the project using…
I am trying to compile a project using requirejs optimizer and grunt (https://www.npmjs.org/package/grunt-contrib-requirejs). The output file of the compilation, is a single js file - but it still needs to be called from requirejs like so: