diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-13 19:02:33 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-13 19:02:33 +0200 |
| commit | 51d101f50785b0da88deaf4ede6031fbc7176c7a (patch) | |
| tree | f7a721ec94e0a1355360ac02672a2739afb7d111 /Gruntfile.js | |
| parent | 90e6b7bdfeccff5e96f0bda23bc5c9ab7b33238a (diff) | |
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.
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 18 |
1 files changed, 1 insertions, 17 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']); }; |
