summaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorEric Johansson (neku) <neku@pomf.se>2015-02-05 20:06:08 +0100
committerEric Johansson (neku) <neku@pomf.se>2015-02-05 20:06:08 +0100
commitb816236168e74309be4a298ff0a4644a732dc9f3 (patch)
tree1497dced7d755362dcdfd73b7e11d78b04597f2d /Gruntfile.js
parentc359aa20cd0876e1e497aca1ff19e4c54287b6c2 (diff)
parentfd98101d073805fc42474a00bca640a618f99de6 (diff)
Merge pull request #27 from cenci0/master
Minor code refactoring and improvements
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 18c6a8b..10e2b2b 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -22,6 +22,22 @@ module.exports = function (grunt) {
production: false,
}
},
+ htmlmin: {
+ dist: {
+ options: {
+ removeComments: true,
+ collapseWhitespace: true,
+ conservativeCollapse: true,
+ removeEmptyAttributes: true
+ },
+ files: [{
+ expand: true,
+ cwd: 'dist/',
+ src: '**/*.html',
+ dest: 'dist/'
+ }]
+ }
+ },
uglify: {
options: {
banner: '/*! <%= pkg.name %> (<%= pkg.repository.url %>) @ <%= grunt.template.today("yyyy-mm-dd") %> */\n\n'
@@ -85,5 +101,5 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.registerTask('default', ['mkdir', 'swig', 'cssmin', 'uglify', 'imagemin', 'copy']);
+ grunt.registerTask('default', ['mkdir', 'swig', 'htmlmin', 'cssmin', 'uglify', 'imagemin', 'copy']);
};