0
When I execute the command Grunt uglify this error appears.
Loading "gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected identifier
Warning: Task "uglify" not found. Use --force to continue.
Aborted due to warnings.
Filing cabinet 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");
}
Hello, how is your
package.json
?– avsinacio