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

如果依赖列表中包含.css文件,能否作为css文件加载? #6

Open
eggao opened this issue May 5, 2014 · 1 comment
Open

Comments

@eggao
Copy link

eggao commented May 5, 2014

目前版本没有区分。都是当作JS加载。导致出错

@oxUnd
Copy link
Contributor

oxUnd commented May 5, 2014

@eggao 当初实现mod.js的时候,考虑到异步css过来以后有可能会导致闪屏等情况。在后端解析map.json的时候就把所有依赖的css都集中起来,以同步的方式在head进行加载。保证require.resouceMap中无css出现。

不知你是用何种语言解析了map.json。

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

2 participants