Skip to content

Commit 7fbf82b

Browse files
authored
Merge pull request #102 from jenweber/wasm-filepattern
add wasm to filePattern defaults #101
2 parents 97a22ef + 3c0f112 commit 7fbf82b

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
@@ -120,7 +120,7 @@ A directory within the `bucket` that the files should be uploaded in to. It shou
120120

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

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

125125
### distDir
126126

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,otf}',
19+
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm}',
2020
prefix: '',
2121
profile: '',
2222
acl: 'public-read',

tests/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('s3 plugin', function() {
192192
plugin.beforeHook(context);
193193
plugin.configure(context);
194194

195-
assert.equal(context.config.s3.filePattern, '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf}');
195+
assert.equal(context.config.s3.filePattern, '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm}');
196196
assert.equal(context.config.s3.prefix, '');
197197
assert.equal(context.config.s3.cacheControl, 'max-age=63072000, public');
198198
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)