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 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...
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...
Summary of code:  main.js:      require.config({         paths: {             'uiBootstrap': '../lib/bootstrap/angular-bootstrap/ui-bootstrap-tpls.min'         },         shim: {***},         priority: ['angular'],         dep...
I'm using RequireJS in my browser. I have some JS loaded by a script tag, something like:  requirejs(["jquery", "shared", function($, shared) {   var foo='bar'; }   I would like to print the current value of 'foo'...
I need to load css when my module is loaded, so I did it like this using shims :  function loadCss(url) {     var link = document.createElement("link");     link.type = "text/css";     link.rel = "stylesheet";     link.href =...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.