gruntjs - Fatal error: This socket is closed , when I test grunt-contrib-imagemin -


I am testing the plugin grunct-antibody for jpg minify. But it has always failed to run "Imageman: Dynamic" (ImageMan) function Fatal error: This socket is off.

  Source: grunt.initConfig ({imagemin: {// Function Dynamic: {/ other target files: [[Detailed: true, // dynamic extension cwd Enable: 'src /' , // Src matches are relative to this path: ['** / *. {Png, jpg, gif}'], // actual pattern for actual match: 'dist /' // destination path prefix}]}} });  

Try to re-install Kadahi-Pattern-Imageman:

  Install NMP cache clean NMP wraps - contrib-imagemin --save-dev  

Comments