@@ -109,9 +109,9 @@ def __init__(self, source_dir, destination_bucket, exclude=[], output_dir=None,
109
109
output_dir = mkdtemp ()
110
110
111
111
self ._assets_ext = ['.css' , '.svg' , '.ttf' , '.woff' , '.woff2' , '.otf' , '.eot' , '.png' ,
112
- '.jpg' , '.jpeg' , '.gif' , '.js' , '.mp4' , '.webm' ]
113
- self ._rewriteables_ext = ['.html' , '.htm' , '.js' , '.css' ]
114
- self ._gzip_ext = ['.html' , '.htm' , '.css' , '.js' , '.svg' ]
112
+ '.jpg' , '.jpeg' , '.gif' , '.js' , '.mp4' , '.webm' , '.webp' ]
113
+ self ._rewriteables_ext = ['.html' , '.htm' , '.js' , '.css' , '.xml' ]
114
+ self ._gzip_ext = ['.html' , '.htm' , '.css' , '.js' , '.svg' , '.xml' ]
115
115
116
116
self ._source_dir = source_dir
117
117
self ._output_dir = output_dir
@@ -337,7 +337,7 @@ def _gzip_files(self):
337
337
if is_gzippable :
338
338
tmp_handle , tmp_filename = mkstemp ()
339
339
340
- logger .debug ('Gzipping {0}' .format (f ))
340
+ logger .debug ('Gzipping {0}' .format (abspath ))
341
341
with open (abspath , 'rb' ) as f_in :
342
342
with gzip .open (tmp_filename , 'wb' ) as f_out :
343
343
f_out .writelines (f_in )
0 commit comments