Skip to content

Commit 9b838d2

Browse files
committed
chore(code.angularjs.org): don't gzip compressed image files
1 parent 9051625 commit 9b838d2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Gruntfile.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,12 @@ module.exports = function(grunt) {
315315
},
316316
deployFirebaseCode: {
317317
files: [
318-
// the zip file should not be compressed again.
318+
// copy files that are not handled by compress
319319
{
320-
src: 'build/*.zip',
320+
cwd: 'build',
321+
src: '**/*.{zip,jpg,jpeg,png}',
321322
dest: 'uploadCode/' + deployVersion + '/',
322-
expand: true,
323-
flatten: true
323+
expand: true
324324
}
325325
]
326326
},
@@ -357,7 +357,8 @@ module.exports = function(grunt) {
357357
options: {
358358
mode: 'gzip'
359359
},
360-
src: ['**', '!*.zip'],
360+
// Already compressed files should not be compressed again
361+
src: ['**', '!**/*.{zip,png,jpeg,jpg}'],
361362
cwd: 'build',
362363
expand: true,
363364
dest: 'uploadCode/' + deployVersion + '/'

0 commit comments

Comments
 (0)