We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41bf39 commit 94d4897Copy full SHA for 94d4897
README.md
@@ -57,6 +57,33 @@ grunt.initConfig({
57
grunt.registerTask('default', ['htmlmin']);
58
```
59
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
+```
87
88
## Release History
89
0 commit comments