When I run the grunt uglify command this error appears.
Loading "gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected identifier
Warning: Task "uglify" not found. Use --force to continue.
Aborted due to warnings.
File gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
dist: {
files: {
'dist/main.min.js': ["js/*.js"]
}
}
},
cssmin : {//task
dist : {//targ
files : {//configurações
"dist/css/style.min.css" : ["css/*.css"]
}
}
},
watch : {
dist : {//targ
files : ["css/*.css"]
tasks : ["cssmin"]
}
}
});
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-cssmin");
grunt.loadNpmTasks("grunt-contrib-watch");
}