【发布时间】:2013-04-24 19:19:55
【问题描述】:
在我看来,我错过了一些东西。是否有可能在 Grunt 中为 Stylus 或 RequireJS 制作子任务?我的意思是这样的:
grunt.initConfig({
stylus: {
dev: {
compile: {...}
},
prod: {
compile: {...}
}
}
});
对我来说它不起作用。但是当我写的时候:
...
stylus: {
compile: {...}
}
...
它工作正常,创建文件等等......那我做错了什么?
【问题讨论】: