I have a single page Marionette app built on RequireJS which needs to support translations.  My goal is to have a dictionary file for each language, and based on the logged in user's configuration, load the relevant file.  Since most of the users...
I have 2 types of Modules:  Require.js Main File:      require.config({       baseUrl: "/another/path",       paths: {         "some": "some/v1.0"       },       waitSeconds: 15,       locale: "fr-fr"     });       req...
I would like to ignore the use of a require js plugin when I use the optimizer  define(["css!styles.css"])  This always gives me this error Cannot read property 'normalize' of undefined.  I've set this options to the require optim...
I am trying to remove copyright comments from my optimized script files. We are using RequireJS with the default UglifierJS. I looked into Uglifier which in itself has a flag called -nc or --no-comments, but it does not seem like RequireJS lets you s...
Short and seemingly stupid question because so simple and you'd think ubiquitous: has anyone gotten any kind of code coverage to work within a RequireJS front-end project (non NodeJS)?  Seems like a stupid question because of the prevalence of TD...
First a bit of history, we have an engine which is made up of many javascript files which are essentially modules. These modules return a single class that are assigned to the global scope, although under a specified namespace.  The engine itself is...
I am upgrading a project from Dojo 1.6.1 using AMD and RequireJS to Dojo 1.7.1 with its new AMD loader. I have to deal with old JavaScript files, not written as AMD modules, and have to load them in the correct order.  Before I used the RequireJS ord...
After playing around with AMD/RequireJS I was wondering if it is a good idea to load UI modules including templates and CSS so they are completely independent from the web page.  It sounds like good, but I haven't seen this implemented in the wi...
I'm having a heckuva time transitioning to Dojo and the new AMD structure, and I'm really hoping someone can shed some light on the whole concept.  I've been living on Google for the last few weeks trying to find information on not the us...
usually a requirejs module looks like:  define('ModuleName', ['jquery', 'underscore', 'backbone'], function($, _, Backbone){  });   because every file in my setup requires underscore and backbone I would like to have t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.