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

packages配置location包含':'时,产生的资源id在windows上目录是'\'. 是否可以统一成'/' #4

Open
kangxu2015 opened this issue Sep 7, 2015 · 3 comments

Comments

@kangxu2015
Copy link

No description provided.

@kangxu2015 kangxu2015 changed the title packages配置location包含':'时,产生的资源id在windows上带有'\'. 是否可以统一成'/' packages配置location包含':'时,产生的资源id在windows上目录是'\'. 是否可以统一成'/' Sep 7, 2015
@2betop
Copy link
Contributor

2betop commented Sep 7, 2015

packages 的 location 难道你用了系统物理路径?只能写基于 baseUrl 的路径,千万别加盘符进来。

@kangxu2015
Copy link
Author

{name: 'jquery',location: 'components:jquery/',main: 'jquery.js'}这样写的
是path.join('a','b','c');在windows下a\b\c
info.id = path.join(pkg.folder, subpath || pkg.main || 'main'); //lookup.js line131

@2betop
Copy link
Contributor

2betop commented Sep 8, 2015

收到了,我知道什么问题了。

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