amd-optimize
amd-optimize copied to clipboard
Prefix paths are not resolving properly
Using Bower & RequireJS, I have the following directory structure:
vendor/
flight/
component.js
....
scripts/
common.js (RequireJS config)
app/
core/
component_ui/
nav_drawer.js
In scripts/app/core/component_ui/nav_drawer.js, I have define(['flight/component'....
Just using RequireJS, this works because in my RequireJS config I have:
baseUrl: '/scripts/',
paths: {
'flight': '../vendor/flight',
....
}
When I use amd-optimize like so:
amdOptimize.src('app/core/boot/main', {
baseUrl: 'scripts',
configFile: 'scripts/common.js'
})
I get the error:
Error: No file for module 'app/core/vendor/flight/component' found.
Same issue, amd-opt don't prepend the relative paths with the baseUrl. :/
Similar issue here. Any work arounds?
+1
+1
+1