在我看来,我错过了一些东西。是否有可能在 Grunt 中为 Stylus 或 RequireJS 制作子任务?我的意思是这样的:
grunt.initConfig({
stylus: {
dev: {
compile: {...}
},
prod: {
compile: {...}
}
}
});
对我来说它不起作用。但是,当我写:
...
stylus: {
compile: {...}
}
...
它工作正常,创建文件等等......那我做错了什么?