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依赖读取的路径不全 #6

Closed
akecn opened this issue Nov 2, 2013 · 1 comment
Closed

对css依赖读取的路径不全 #6

akecn opened this issue Nov 2, 2013 · 1 comment

Comments

@akecn
Copy link

akecn commented Nov 2, 2013

kmc配置

目录

test/
    - init.js
    - index.js
    - index.css
    - gruntfile.js

kmc配置

kmc: {
    main:{
        options: {
            packages: [
                {
                    name: 'test',
                    path: '../',
                    charset: 'utf-8'
                }
            ],
            depFilePath:'deps.js',
            comboOnly: true
        },
        files: [
            {
                src: './init.js'
            }
        ]
    }
}

打包入口文件代码

KISSY.add(function(S) {

}, {
    requires: ['./index', './index.css']
});

输出结果:

KISSY.config('modules', {
 'test/init': { requires: ['test/index', './index.css']},
 'test/index': { requires: ['dom', 'event', 'ajax']} 
});

期望结果

KISSY.config('modules', {
 'test/init': { requires: ['test/index', 'test/index.css']},
 'test/index': { requires: ['dom', 'event', 'ajax']} 
});

样式的路径补全

@daxingplay
Copy link
Owner

fixed in kmc v1.0.19, please ses this issue for details: daxingplay/kmc#32

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