Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizer does not recognize that it needs to treat *.js files differently #21

Closed
kmiyashiro opened this issue Sep 25, 2011 · 0 comments

Comments

@kmiyashiro
Copy link

From http://requirejs.org/docs/api.html#jsfiles :

Script names that are just regular paths ending in ".js", start with a "/" or have a protocol in them are always mapped relative to the HTML page instead of relative to baseUrl, just like HTML <script> src="" values.

The optimizer still looks for *.js files using the baseUrl, set in the build config file, as if they were modules. This is different behavior than what require.js does, and so it fails to find them. Instead, it should look for them relative to the project/output directories, or some other special parameter specifically for .js files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants