I have installed the grunt task grunt-contrib-copy. I embedd it in my Gruntfile.js and load the task via grunt.loadNpmTasks(\'grunt-contrib-c
Assuming that 'Gruntfile.js' is in root directory, the last line in your copy options is configuring it to copy everything in root to 'output/'.
If this is intended, add '!Gruntfile.js' to your array of src file paths.
{
expand: true,
cwd: './',
src: ['**'], // ex. src: ['**', '!Gruntfile.js'],
dest: 'output/'
}
Refer to these solutions from this thread and original thread