jrburke/requirejs — Issue #208: Config Paths auto-appending .js
Author: quantumlord42
Created: 2012-03-09 16:19:10+00:00
State: open

Hi,
I am trying to learn require.js and see if it will be useful for integrating into the CMS that I use.

However, because of the fact that the config paths object auto-append ".js" to the path, it makes require.js impossible to be used in a versatile, flexible manner regardless of if it is being used with a CMS or not.

Two example cases:
1. If there is a PHP file that compiles the list of need javascript files to include: "/path/to/file.php".
2. If the server is configured to run most URLs through a single index.php (as the case with the CMS). ("/javascript/files/")

In both of the above cases, appending ".js" will result in a 404 not found.

Is there a way to disable to addition of ".js" to the end of the path?