Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5acfac8

Browse files
committed
chore(code.angularjs.org): don't gzip compressed image files
1 parent a879e82 commit 5acfac8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Gruntfile.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ module.exports = function(grunt) {
328328
},
329329
deployFirebaseCode: {
330330
files: [
331-
// the zip file should not be compressed again.
331+
// copy files that are not handled by compress
332332
{
333-
src: 'build/*.zip',
333+
cwd: 'build',
334+
src: '**/*.{zip,jpg,jpeg,png}',
334335
dest: 'uploadCode/' + deployVersion + '/',
335-
expand: true,
336-
flatten: true
336+
expand: true
337337
}
338338
]
339339
},
@@ -370,7 +370,8 @@ module.exports = function(grunt) {
370370
options: {
371371
mode: 'gzip'
372372
},
373-
src: ['**', '!*.zip'],
373+
// Already compressed files should not be compressed again
374+
src: ['**', '!**/*.{zip,png,jpeg,jpg}'],
374375
cwd: 'build',
375376
expand: true,
376377
dest: 'uploadCode/' + deployVersion + '/'

0 commit comments

Comments
 (0)