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 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'Gruntfile.js') 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']); }; -- cgit v1.2.3