summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-13 19:02:33 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-13 19:02:33 +0200
commit51d101f50785b0da88deaf4ede6031fbc7176c7a (patch)
treef7a721ec94e0a1355360ac02672a2739afb7d111
parent90e6b7bdfeccff5e96f0bda23bc5c9ab7b33238a (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.
-rw-r--r--Gruntfile.js18
-rw-r--r--package.json1
2 files changed, 1 insertions, 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"