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

baseUrl配置不起作用? #17

Open
liushouxiang opened this issue Dec 2, 2015 · 3 comments
Open

baseUrl配置不起作用? #17

liushouxiang opened this issue Dec 2, 2015 · 3 comments

Comments

@liushouxiang
Copy link

var deployRoot = '/static/xxx/xxx';
fis.hook('amd', {
baseUrl: deployRoot,
globalAsyncAsSync: true,
forwardDeclaration: false
});
这样写了没有生效

@2betop
Copy link
Contributor

2betop commented Dec 2, 2015

不是 deployRoot 而是源码里面的路径。编译期去查找的。

@MarvinXu
Copy link

MarvinXu commented Jul 27, 2016

我的baseUrl貌似也不对,不是从根目录查找的

//fis-conf.js
fis.hook('amd', {
    baseUrl: '/static/js/mods/'
});
//order.vm
require(['a'],function(a){})

访问http://127.0.0.1:8080/order/andr
请求的js路径为http://127.0.0.1:8080/order/static/js/mods/a.js

@MarvinXu
Copy link

MarvinXu commented Aug 3, 2016

有demo吗?我现在不管是配置baseUrl,package还是不配置,引用模块时路径都不对。。搞不明白啊

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

3 participants