Skip to content

Commit 0e4397c

Browse files
committed
Add otf file type to default filePattern
TrueType is already included, so why not OpenType as well?
1 parent c94fbaf commit 0e4397c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ A directory within the `bucket` that the files should be uploaded in to.
111111

112112
Files that match this pattern will be uploaded to S3. The file pattern must be relative to `distDir`.
113113

114-
*Default:* '\*\*/\*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2}'
114+
*Default:* '\*\*/\*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf}'
115115

116116
### distDir
117117

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
var DeployPlugin = DeployPluginBase.extend({
1717
name: options.name,
1818
defaultConfig: {
19-
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2}',
19+
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf}',
2020
prefix: '',
2121
acl: 'public-read',
2222
cacheControl: 'max-age='+TWO_YEAR_CACHE_PERIOD_IN_SEC+', public',

tests/unit/index-nodetest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ describe('s3 plugin', function() {
185185
plugin.beforeHook(context);
186186
plugin.configure(context);
187187

188-
assert.equal(context.config.s3.filePattern, '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2}');
188+
assert.equal(context.config.s3.filePattern, '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf}');
189189
assert.equal(context.config.s3.prefix, '');
190190
assert.equal(context.config.s3.cacheControl, 'max-age=63072000, public');
191191
assert.equal(new Date(context.config.s3.expires).getTime(), new Date('Tue, 01 Jan 2030 00:00:00 GMT').getTime());;

0 commit comments

Comments
 (0)