gruntfile.js无法编译;没有找到有效的源文件

gruntfile.js Unable to compile; no valid source files were found

我是 g运行t 的新手,我很难弄清楚我做错了什么。

当我 运行 它时,我收到错误 "Unable to compile; no valid source files were found."

如果有人能给我一些关于如何修复它的建议,我将不胜感激。

这是我的 g运行t 文件:

  module.exports = function(grunt) {

    grunt.initConfig ({
      responsive_images: {
        dev: {
          options: {
            engine: 'im',
            sizes: [{
              width: 1600,
              suffix: '_large_2x',
              quality: 30
            }]
          },
          files: [{
            expand: true,
            src: ['**/*.{gif,jpg,png};'],
            cwd: 'images_src/',
            dest: 'images/'
          }]
        }
      },
    });

    grunt.loadNpmTasks('grunt-responsive-images');
    grunt.loadNpmTasks('grunt-contrib-imagemin')
  grunt.registerTask('default', ['responsive_images']);};

这是我的 Package.json

{
  "name": "reponsive-images",
  "version": "0.1.0",
  "repository": {
    "type": "git",
    "url": "https://github.com/udacity/responsive-images.git"
  },
  "devDependencies": {
    "grunt": "~0.4.5",
    "grunt-contrib-clean": "~0.6.0",
    "grunt-contrib-copy": "~0.8.0",
    "grunt-contrib-imagemin": "^1.0.1",
    "grunt-contrib-jshint": "~0.10.0",
    "grunt-contrib-nodeunit": "~0.4.1",
    "grunt-contrib-uglify": "~0.5.0",
    "grunt-mkdir": "~0.1.2"
  },
  "dependencies": {
    "grunt-responsive-images": "^0.1.6"
  }
}

如果你们能提供任何建议,我们将不胜感激!

我解决了!

我需要将我的 src 路径编辑为:['/**/*.{gif,jpg,png};],