node.js - Getting Error message "No "concat" targets found" when running grunt-usemin -


my grunt file shown below:

module.exports = function(grunt) {      // project configuration.     grunt.initconfig({         pkg: grunt.file.readjson('package.json'),         uglify: {             options: {                 banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'             },             build: {                 src: 'src/**/*.js',                 dest: 'dist/<%= pkg.name %>.min.js'             }         },         watch: {             js: {                 files: ['src/**/*.js'],                 options: {                     livereload: '<%= connect.options.livereload %>'                 }             },             livereload: {                 options: {                     livereload: '<%= connect.options.livereload %>'                 },                 files: [                     'src/**/*.html',                     'src/**/*.css',                     'src/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'                 ]             }         },         connect: {             options: {                 port: 9000,                 livereload: 35729,                 hostname: 'localhost'             },             livereload: {                 options: {                     open: true,                     // base: [                     //     '.tmp',                     //     ''                     // ]                     middleware: function(connect) {                         return [                             connect.static('.tmp'),                             connect().use(                                 '/bower_components',                                 connect.static('./bower_components')                             ),                             connect().use(                                 '/app/styles',                                 connect.static('./app/styles')                             ),                             connect.static('src')                         ];                     }                 }             }         },         copy: {             app: {                 cwd: 'src', // set working folder / root copy                 src: '**/*.html', // copy files , subfolders                 dest: 'dist/', // destination folder                 expand: true             },             assets: {                 cwd: 'src', // set working folder / root copy                 src: 'assets/*', // copy files , subfolders                 dest: 'dist/', // destination folder                 expand: true             }         },         useminprepare: {             options: {                 dest: 'dist'             },             html: 'src/index.html'         },          usemin: {             html: ['dist/index.html']         }      });      // load plugin provides "uglify" task.     // grunt.loadnpmtasks('grunt-contrib-uglify');     grunt.loadnpmtasks('grunt-contrib-connect');     grunt.loadnpmtasks('grunt-contrib-watch');     grunt.loadnpmtasks('grunt-contrib-uglify');     grunt.loadnpmtasks('grunt-contrib-copy');     grunt.loadnpmtasks('grunt-contrib-concat');     grunt.loadnpmtasks('grunt-usemin');      // default task(s).     grunt.registertask('default', ['useminprepare', 'copy', 'concat', 'uglify', 'usemin']);     grunt.registertask('serve', function(target) {         grunt.task.run([             'connect:livereload',             'watch'         ]);     });  }; 

when run grunt getting error message "no "concat" targets found". have been trying 2 hours solve problem no result pls me solution.

way late, in case useful else: believe useminprepare auto-generate concat configuration , feed grunt task runner, above responses not quite accurate say.

i try reviewing build blocks in src/index.html , check paths point resources useminprepare concatenate. i'm struggling problem :s

reference here: https://github.com/yeoman/grunt-usemin


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -