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

resourceType: 'amd'没有返回amd格式的resourcemap #57

Open
bingfeatcc opened this issue May 24, 2016 · 3 comments
Open

resourceType: 'amd'没有返回amd格式的resourcemap #57

bingfeatcc opened this issue May 24, 2016 · 3 comments

Comments

@bingfeatcc
Copy link

fis.match('::package', {  
    postpackager: fis.plugin('loader', {
        resourceType: 'amd',
        useInlineMap: true
    })
});

我设置了resourceType: 'amd', 返回的老是mod.js 用的格式,如下

require.config({
    "res": {
        "widget/header/header.js": {
            "uri": "/widget/header/header.js",
            "type": "js",
            "deps": [
                "widget/header/Base.js"
            ]
        },
    },
    "pkg": {}
});

试了很久,不知道是什么原因。

@oxUnd
Copy link

oxUnd commented May 24, 2016

fis.hook('amd') ?

@2betop
Copy link
Contributor

2betop commented May 24, 2016

这不科学啊,求 demo

@bingfeatcc
Copy link
Author

多谢,已经解决!是require.min.2.1.22.js的坑,把名字改成require.js就可以了。

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