cgross / grunt-dom-munger

Grunt task to read and manipulate HTML with CSS selectors.
MIT License
93 stars 40 forks source link

src option isn't detected #24

Closed evanshortiss closed 10 years ago

evanshortiss commented 10 years ago

I've tried using this module using the following config:

dom_munger: {
  release: {
    options: {
      src: './www_dev/index.html',
      read: {
        selector: 'script[src]',
        attribute: 'src',
        writeto: 'jsFiles',
        isPath: true
      }
    }
  }
},

But found that the processFile function is never run and this.files on line 170 is an empty array (I refer to the dom_munger.js file in the module source). I've tried version 3.3.0 and 3.4.0. I'm not sure is this an issue with my config or a bug. I may get more time to investigate later.

cgross commented 10 years ago

Its an issue with your config. src should not be inside options.

evanshortiss commented 10 years ago

Man. Rookie move. Thanks!

cgross commented 10 years ago

No problem :)

Sent from my iPhone

On Jun 25, 2014, at 1:28 PM, Evan notifications@github.com wrote:

Man. Rookie move. Thanks!

— Reply to this email directly or view it on GitHub.