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

关于非相对路径模块合并依赖问题 #39

Closed
hguankei opened this issue Jan 10, 2014 · 1 comment
Closed

关于非相对路径模块合并依赖问题 #39

hguankei opened this issue Jan 10, 2014 · 1 comment

Comments

@hguankei
Copy link

关于非相对路径模块合并依赖 比如我require['./test','global/test']
./test就合并进来,global/test就合并不进来
是需要怎么设置么

@daxingplay
Copy link
Owner

应该是这个问题吧:daxingplay/grunt-kmc#10

如果是用的grunt版本,请参考grunt-kmc的那个issue来配置包。

如果是用的这个独立的node版本,也是需要配置包。具体可以参照wiki或者examples下面的一些示例配置,和kissy本身配置包的规则是一样的。

var kmc = require('kmc');
kmc.config({
    packages: {
         global: {
             base: './src/'
         }
    }
});

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