diff options
Diffstat (limited to 'pyload/web/Gruntfile.js')
-rw-r--r-- | pyload/web/Gruntfile.js | 15 |
1 files changed, 14 insertions, 1 deletions
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', [ |