diff options
author | 2013-09-11 13:07:18 +0200 | |
---|---|---|
committer | 2013-09-11 13:07:18 +0200 | |
commit | 6104151b9f5e682ba1f3c2e09c28604066b30fdf (patch) | |
tree | b9a1d6d6e84fdcd58ed3b7130a72439b7c37c8f0 /pyload/web/Gruntfile.js | |
parent | container upload and url parser for linkgrabber (diff) | |
download | pyload-6104151b9f5e682ba1f3c2e09c28604066b30fdf.tar.xz |
gzip files on build, disabled gzip middleware
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', [ |