Skip to content

Commit 94d4897

Browse files
authoredAug 30, 2016
example for #134 in docs
1 parent d41bf39 commit 94d4897

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

‎README.md

+27
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,33 @@ 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+
src: ['src/**/*.html', '*.html'],
79+
dest: 'dist'
80+
}]
81+
}
82+
}
83+
});
84+
85+
grunt.registerTask('default', ['htmlmin']);
86+
```
6087

6188
## Release History
6289

0 commit comments

Comments
 (0)
Please sign in to comment.