From 51d101f50785b0da88deaf4ede6031fbc7176c7a Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Tue, 13 Oct 2015 17:02:33 +0000 Subject: Remove grunt-contrib-htmlmin HTML minification The benefits of HTML minification are too small and outweighted by the benefits of not having to deal with yet another dependency in Pomf's code. `Vary: Accept-Encoding` on the server is the recommended way to approach this, also for clarity and debugging without browser consoles. We don't need this. --- Gruntfile.js | 18 +----------------- package.json | 1 - 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 93d693f..1f2da80 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -27,21 +27,6 @@ module.exports = function (grunt) { production: false, } }, - htmlmin: { - dist: { - options: { - removeComments: true, - collapseWhitespace: 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' + @@ -91,9 +76,8 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-swig'); grunt.loadNpmTasks('grunt-mkdir'); grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-htmlmin'); grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.registerTask('default', ['mkdir', 'swig', 'htmlmin', 'cssmin', 'uglify', 'copy']); + grunt.registerTask('default', ['mkdir', 'swig', 'cssmin', 'uglify', 'copy']); }; diff --git a/package.json b/package.json index ac6e018..87ffc80 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "grunt": "^0.4.1", "grunt-contrib-copy": "^0.8.1", "grunt-contrib-cssmin": "^0.14.0", - "grunt-contrib-htmlmin": "^0.5.0", "grunt-contrib-uglify": "^0.9.2", "grunt-mkdir": "^0.1.1", "grunt-swig": "^0.2.1" -- cgit v1.2.3