Open simshaun opened 9 years ago
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:
scripts/app/core/component_ui/nav_drawer.js
define(['flight/component'...
baseUrl: '/scripts/', paths: { 'flight': '../vendor/flight', .... }
When I use amd-optimize like so:
amd-optimize
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
Using Bower & RequireJS, I have the following directory structure:
In
scripts/app/core/component_ui/nav_drawer.js
, I havedefine(['flight/component'...
. Just using RequireJS, this works because in my RequireJS config I have:When I use
amd-optimize
like so:I get the error: