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

require用绝对路径怎么办 #13

Open
ckrad opened this issue Sep 29, 2015 · 4 comments
Open

require用绝对路径怎么办 #13

ckrad opened this issue Sep 29, 2015 · 4 comments

Comments

@ckrad
Copy link

ckrad commented Sep 29, 2015

require用绝对路径怎么办 可以指定root吗 我在构建配置里面没有看到类似的选项

require('/module/A');
@soda-x
Copy link
Contributor

soda-x commented Oct 20, 2015

需要绝对路径的初衷是什么

@ckrad
Copy link
Author

ckrad commented Nov 3, 2015

@pigcan 好维护 移动文件的时候不需要修改路径 引用模块的时候也不需要算相对路径

@soda-x
Copy link
Contributor

soda-x commented Nov 3, 2015

现在require绝对路径应该是没有问题的
但是你提的需求�类似 seajs config 一样的功能了. 目前不支持.

移动文件 这种情况也很少吧.

@ckrad
Copy link
Author

ckrad commented Nov 4, 2015

@pigcan 很有可能的 而且要计算请求模块的相对路径 太麻烦了

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