-
Notifications
You must be signed in to change notification settings - Fork 11
examples
橘子 edited this page Sep 22, 2013
·
3 revisions
- 将src/test目录下的所有入口文件打包,并且生成assets/dist/test/mods.js这个依赖文件
grunt.initConfig({
kmc: {
main:
options: {
packages: [
{
name: 'test',
path: 'assets/src',
charset: 'gbk'
}
],
depFilePath: 'assets/dist/test/mods.js',
},
files: [{
src: 'assets/src/test/',
dest: 'assets/dist/test/'
}]
}
})
- 分析src/test目录下的所有入口文件,并且只生成assets/dist/test/mods.js这个依赖文件,不打包
grunt.initConfig({
kmc: {
main:
options: {
packages: [
{
name: 'test',
path: 'assets/src',
charset: 'gbk'
}
],
depFilePath: 'assets/dist/test/mods.js',
comboOnly: true
},
files: [{
src: 'assets/src/test/',
dest: 'assets/dist/test/'
}]
}
})