Yeomen webapp generator failing on grunt build on windows

后端 未结 1 590
野性不改
野性不改 2021-01-16 17:00

I\'m trying out the yeomen scaffolding tool. The only problem it that i am running into some problems with it and grunt. I’m trying to assemble a simple website using the we

相关标签:
1条回答
  • 2021-01-16 17:33

    I'll bet your problem is with the imagemin task.

    imagemin: {
      dist: {
        files: [{
          expand: true,
          cwd: '<%= config.app %>/images',
          src: '{,*/}*.{gif,jpeg,jpg,png}',
          dest: '<%= config.dist %>/images'
        },{
          expand: true,
          cwd: '<%= config.app %%>',
          src: '*.{ico,png}',
          dest: '<%= config.dist %%>'
        }]
      }
    },
    

    Notice in the second files object, cwd and dest templates have an extra %? Get rid of them.

    0 讨论(0)
提交回复
热议问题