chore(code.angularjs.org): don't gzip compressed image files
This commit is contained in:
committed by
Martin Staffa
parent
9f1793fd2d
commit
e1e2100e66
+6
-5
@@ -315,12 +315,12 @@ module.exports = function(grunt) {
|
||||
},
|
||||
deployFirebaseCode: {
|
||||
files: [
|
||||
// the zip file should not be compressed again.
|
||||
// copy files that are not handled by compress
|
||||
{
|
||||
src: 'build/*.zip',
|
||||
cwd: 'build',
|
||||
src: '**/*.{zip,jpg,jpeg,png}',
|
||||
dest: 'uploadCode/' + deployVersion + '/',
|
||||
expand: true,
|
||||
flatten: true
|
||||
expand: true
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -357,7 +357,8 @@ module.exports = function(grunt) {
|
||||
options: {
|
||||
mode: 'gzip'
|
||||
},
|
||||
src: ['**', '!*.zip'],
|
||||
// Already compressed files should not be compressed again
|
||||
src: ['**', '!**/*.{zip,png,jpeg,jpg}'],
|
||||
cwd: 'build',
|
||||
expand: true,
|
||||
dest: 'uploadCode/' + deployVersion + '/'
|
||||
|
||||
Reference in New Issue
Block a user