requirejs: {
js: {
options: {
baseUrl: "js",
name: "requireConfig", // assumes a production build using almond
out: "dist/js/output.js",
}
},
css: {
options: {
cssIn: "css/css-bind.css",
out: "dist/css/output.css"
}
}
}
对grunt不熟,直接在配置项下配置多目标就行了。
grunt.loadNpmTasks('grunt-contrib-requirejs');//加载模块
grunt.registerTask('default', ['requirejs']);//注册任务