javascript - Task "default" not found - uglify -
I'm taking my first step with Grant, though I try to reduce my JS file when I get the following error I've been testing the same kind of answers but have not used any benefits:
"Task" default "not found" The gruntfile code is below, can someone point me in the right direction?
Module Exports = function (grunt) {grunt.initConfig ({pkg: grunt.file.readJSON ('package .json'), concat: {dist: {src: ['js / libs / *. Js' //], dest : 'Js / build / production.js',}} Eugelif: {build: {src: 'js / build / production.js', dest: 'js / build / production.min.js'}}}); Grunt.loadNpmTasks ('grunt-contribution-concat'); Grunt.loadNpmTasks ('grunt-contortion-distort'); Grunt.registerTask ('default', ['concat', 'uglify']); }; Thanks!
Your grunt.initConfig object allows you to type your concat Closing the entry requires a comma after the bracing:
Module Exports = function (gross) {grunt.initConfig ({pkg: grunt.file.readJSON ('package.json'), concat: {dist: {src: [js / libs / * .js' //], dest: 'Js / build / production.js',}}, // & lt; - The missing comma here is havoc: {build: {src:' js / build / production.js', dest: 'js / build / production. Min.js'}}}); Grunt.loadNpmTasks ('grunt-contribution-concat'); Grunt.loadNpmTasks ('grunt-contortion-distort'); Grunt.registerTask ('default', ['concat', 'uglify']); }; This syntax error grunts never sees your grunt.registerTask ('default') call.
Comments
Post a Comment