File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ module.exports = {
24
24
expires : EXPIRE_IN_2030 ,
25
25
dotFolders : false ,
26
26
batchSize : 0 ,
27
+ defaultMimeType : 'application/octet-stream' ,
27
28
distDir : function ( context ) {
28
29
return context . distDir ;
29
30
} ,
@@ -61,6 +62,7 @@ module.exports = {
61
62
var dotFolders = this . readConfig ( 'dotFolders' ) ;
62
63
var serverSideEncryption = this . readConfig ( 'serverSideEncryption' ) ;
63
64
var batchSize = this . readConfig ( 'batchSize' ) ;
65
+ var defaultMimeType = this . readConfig ( 'defaultMimeType' ) ;
64
66
65
67
var filesToUpload = distFiles . filter ( minimatch . filter ( filePattern , { matchBase : true , dot : dotFolders } ) ) ;
66
68
@@ -78,7 +80,8 @@ module.exports = {
78
80
manifestPath : manifestPath ,
79
81
cacheControl : cacheControl ,
80
82
expires : expires ,
81
- batchSize : batchSize
83
+ batchSize : batchSize ,
84
+ defaultMimeType : defaultMimeType
82
85
} ;
83
86
84
87
if ( serverSideEncryption ) {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ describe('s3 plugin', function() {
128
128
return previous ;
129
129
} , [ ] ) ;
130
130
131
- assert . equal ( messages . length , 6 ) ;
131
+ assert . equal ( messages . length , 7 ) ;
132
132
} ) ;
133
133
134
134
describe ( 'required config' , function ( ) {
You can’t perform that action at this time.
0 commit comments