gulp-requirejs-optimize
gulp-requirejs-optimize copied to clipboard
Named module not found
When I include a module that is defined like so:
define("foo", [ ], function() {
return {
// ...
};
});
And I clude that module early in my application, it works fine. When I then also include the module by name foo rather than path path/to/foo, it doesn't work.
Error: ENOENT: no such file or directory
It works fine when I don't build my project and let RequireJS do its thing in the browser.