dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

Properly Globbing HTML Files? #47

Closed joshrouwhorst closed 10 years ago

joshrouwhorst commented 10 years ago

I'm wondering what the proper way to setup the Grunt configuration would be for my situation.

I'm looking to process HTML files from several subfolders in my app directory and mirror their directories and names in my dist folder. I've tried doing this:

processhtml: {
  options: {
    commentMarker: 'processhtml'
  },
  dist: {
    files: {
      '<%= yeoman.dist %>/**/*': ['app/**/*.html']
    }
  }
}

But that just creates a * folder under my dist directory and a file within it called . What I'm looking to do is if I have HTML files with paths app/views/foo.html and app/views/forms/bar.html to get migrated to dist/views/foo.html and dist/views/forms/bar.html without having to specify each file. Is that possible?

Thanks!

dciccale commented 10 years ago

Please see #45 #33 #29