Email-builder / grunt-email-builder

Build Emails from HTML / CSS code in grunt
Other
94 stars 14 forks source link

TypeError: pattern.indexOf is not a function #49

Closed josephbergdoll closed 8 years ago

josephbergdoll commented 8 years ago

Keep getting this and can't figure out the source.

jeremypeter commented 8 years ago

@josephbergdoll Can you post your grunt file? Need a little more context

josephbergdoll commented 8 years ago

@jeremypeter

emailBuilder:
      inline:
        options:
          encodeSpecialChars: true
        files:
          expand: true
          cwd: 'email/'
          src: ['**/*.html']
          dest: 'email/_inline'
jeremypeter commented 8 years ago

@josephbergdoll Try this, the files property needs to be an array instead of an object:

emailBuilder:
      inline:
        options:
          encodeSpecialChars: true
        files: [
          expand: true
          cwd: 'email/'
          src: ['**/*.html']
          dest: 'email/_inline
        ]
josephbergdoll commented 8 years ago

That did it, many thanks. Strange, though: all of the files properties for my other tasks are objects!