I'm new to grunt js. I'm trying to build multiple tasks with grunt js but each time i got error. How to out from this issue? Here's the my example code.
module.exports = function(grunt){
grunt.initConfig({
useminPrepare:{
html:['app/index.html'],
options:{
dest:'build'
}
},
usemin:{html:['build/index.html']},
copy:{
task0: {
src:['app/index.html', 'app/index2.html'],
dest:['build/index.html', 'build/index2.html']
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-usemin');
grunt.registerTask('build',[
'copy:task0',
'useminPrepare',
'concat',
'cssmin',
'uglify',
'usemin'
])
}