daxingplay / kmc

module compiler for kissy
MIT License
32 stars 36 forks source link

支持kissy 1.3+的包配置方式 #33

Closed daxingplay closed 10 years ago

daxingplay commented 10 years ago

即支持下面的这种配置包的方式:

KISSY.config({
    packages:{
        x:{
            // x 包的基准路径
            base:'http://x.com/biz/',
            // x 包的时间戳
            tag:'x',
            // 开启 x 包 debug 模式
            debug:true
        },
        y:{
           // y 包的基准路径
           base:'http://x.com/biz/',
           // y 包不开启自动 combo
           combine:false
           // 不配置 tag,则取 kissy 内置模块的时间戳
        }
    }
}
daxingplay commented 10 years ago

added in https://github.com/daxingplay/kmc/commit/1106cb460e308491c89d9ed76bb6ae0fcd1f9e3f

v1.0.21