If you don’t feel like adding a dependency on noext, you can also just append a dummy query string to the path to prevent the .js extension from being appended, as in:
require.config({
paths: {
'signalr-hubs': '/signalr/hubs?noext'
}
});
This is what the noext plugin does.
More Related Contents:
- Mismatched anonymous define() module
- Prevent RequireJS from Caching Required Scripts
- Relation between CommonJS, AMD and RequireJS?
- Why use Object.prototype.hasOwnProperty.call(myObj, prop) instead of myObj.hasOwnProperty(prop)?
- Loading Backbone and Underscore using RequireJS
- Dynamic require in RequireJS, getting “Module name has not been loaded yet for context” error?
- Does it make sense to use Require.js with Angular.js? [closed]
- How to handle circular dependencies with RequireJS/AMD?
- How to load bootstrapped models in Backbone.js while using AMD (require.js)
- How can I mock dependencies for unit testing in RequireJS?
- Requirejs why and when to use shim config
- RequireJS: How to define modules that contain a single “class”?
- Difference between RequireJS and CommonJS
- What is ‘define’ used for in JavaScript (aside from the obvious)?
- Using RequireJS, how do I pass in global objects or singletons around?
- How to disable the warning ‘define’ is not defined using JSHint and RequireJS
- Ember.js and RequireJS
- using requirejs to load npm packages
- How to import a js library without definition file in typescript file
- Node JS fs module inside browser
- How to get camera position with mouse move event and transform into screen coordinates in three.js? [closed]
- Updating php values using jquery
- Adding console.log to every function automatically
- How to draw sky chart? [closed]
- How do I re-trigger a WebKit CSS animation via JavaScript?
- Getting values from query string in an URL using AngularJS $location
- Replace a value if null or undefined in JavaScript
- Is there some way I can “join” the contents of two javascript arrays much like I would do a join in SQL
- Changing data content on an Object Tag in HTML
- Execution order of multiple setTimeout() functions with same interval