We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d41bf39 + fc0c121 commit a3ab8d5Copy full SHA for a3ab8d5
README.md
@@ -57,6 +57,34 @@ 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
+ cwd: 'app',
79
+ src: ['src/**/*.html', '*.html'],
80
+ dest: 'dist'
81
+ }]
82
83
84
+});
85
86
+grunt.registerTask('default', ['htmlmin']);
87
+```
88
89
## Release History
90
0 commit comments