From 6104151b9f5e682ba1f3c2e09c28604066b30fdf Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 11 Sep 2013 13:07:18 +0200 Subject: gzip files on build, disabled gzip middleware --- pyload/web/Gruntfile.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'pyload/web/Gruntfile.js') diff --git a/pyload/web/Gruntfile.js b/pyload/web/Gruntfile.js index 92bb33da9..0a97e7360 100644 --- a/pyload/web/Gruntfile.js +++ b/pyload/web/Gruntfile.js @@ -295,6 +295,18 @@ module.exports = function(grunt) { src: ['**/*.js', '!*.min.js'] } }, + compress: { + main: { + options: { + mode: 'gzip' + }, + expand: true, + cwd: '<%= yeoman.dist %>', + dest: '<%= yeoman.dist %>', + src: ['**/*.{js,css,html}'] + } + }, + // Put files not handled in other tasks here copy: { // Copy files from third party libraries @@ -414,7 +426,8 @@ module.exports = function(grunt) { 'concurrent:dist', // Run minimisation 'uglify', // minify js 'rev', - 'usemin' + 'usemin', + 'compress' ]); grunt.registerTask('default', [ -- cgit v1.2.3