gruntjs/grunt-contrib-htmlmin — pull request #3 by CMTegner (2012-12-30 19:00:55+00:00)
Title: this.file.dest can now be a directory

I want to be able to minify multiple files without having to specify each file individually, so I added some logic around `this.file.dest` which checks to see if the destination is a directory (or resembles one, if it has not yet been created). You can still specify each file individually if you prefer.

I also added support for `options.cwd` to be able to strip parts of the source dirname away. E.g.:

Given the following file structure:
```
test
test/fixtures
test/fixtures/test.html
test/fixtures/test2.html
```
... and the following grunt config:
```
grunt.initConfig({
htmlmin: {
options: {
cwd: "test/fixtures/"
},
'tmp/': 'test/fixtures/*.html'
}
});
```
... the `tmp` folder structure should look like this:
```
tmp
tmp/test.html
tmp/test2.html
```

Everything should be backed up by tests.