jrburke/requirejs — Issue #148: Add special suffix for lookup files
Author: outaTiME
Created: 2011-12-06 03:35:18+00:00
State: open

Hi James,

Its possible to add some kind of configuration field to add special suffix for module resolver ...

i had mixed environment (devel / prod) and my prod files adds "min.js" suffix and diggin' in requirejs code ...

i found the next at line 1408 (at master):

```javascript
url = syms.join("/") + (ext || ".js")

```

if will be great to have configuration like ... mmm ... (im thinking on the fly) ...

```javascript
var require = {
// FIXME: [outaTiME] dynamic using development flag
baseUrl: "/dist/javascript",
// ...
jsSuffix: (dev_environ == true) ? ".js" : "min.js",
// cool
};

```

its good idea or nots ?? ... if nots how can i resolve that ...

thks !!