Skip to content

Commit a3ab8d5

Browse files
authoredJan 5, 2017
Merge pull request #136 from fassetar/patch-1
example for #134 in docs
2 parents d41bf39 + fc0c121 commit a3ab8d5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
 

‎README.md

+28
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,34 @@ grunt.initConfig({
5757
grunt.registerTask('default', ['htmlmin']);
5858
```
5959

60+
#### Example with Nested Files
61+
62+
```js
63+
grunt.initConfig({
64+
htmlmin: { // Task
65+
dist: { // Target
66+
options: { // Target options
67+
removeComments: true,
68+
collapseWhitespace: true
69+
},
70+
files: { // Dictionary of files
71+
'dist/index.html': 'src/index.html', // 'destination': 'source'
72+
'dist/contact.html': 'src/contact.html'
73+
}
74+
},
75+
dev: { // Another target
76+
files: [{
77+
expand: true,
78+
cwd: 'app',
79+
src: ['src/**/*.html', '*.html'],
80+
dest: 'dist'
81+
}]
82+
}
83+
}
84+
});
85+
86+
grunt.registerTask('default', ['htmlmin']);
87+
```
6088

6189
## Release History
6290

0 commit comments

Comments
 (0)
Please sign in to comment.