kss-node / grunt-kss

KSS style guide generator for grunt.
MIT License
14 stars 7 forks source link

No "source" option specified when running 5.0.1 with grunt 10.1 #25

Open Balf opened 7 years ago

Balf commented 7 years ago

When installing the plugin as specified in the readme I get the error mentioned above. I've tried replacing src with source and adding it to a couple different places but no cigar.

cristinallamas commented 6 years ago

same here

35n139e commented 6 years ago

It seems that how to write config is changed. I wrote it as below and it worked.

grunt.initConfig({
  kss: {
    options: {
      verbose: true
    },
    dist: {
      src: ['/path/to/sourcedir'],
      dest: '/path/to/destdir'
    }
  }
})

↓↓↓

grunt.initConfig({
  kss: {
    options: {
      verbose: true
    },
    files: [{
      src: ['/path/to/sourcedir'],
      dest: '/path/to/destdir'
    }]
  }
})