Skip to content

Commit

Permalink
Merge pull request #22 from jrjohnson/deploy-config
Browse files Browse the repository at this point in the history
Safer deployment configuration override
  • Loading branch information
RuslanZavacky authored Jul 11, 2017
2 parents 85bd396 + 4a49f9d commit 991af07
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,27 @@ module.exports = function(environment) {
};
```
In case you use s3 and manifest module for ember-cli-deploy, update there configurations in `config/deploy.js`.
In case you use s3 and manifest module for ember-cli-deploy, update there configurations in `config/deploy.js`
to include `json` as a valid file.
```javascript
module.exports = function(environment) {
var ENV = {
...
s3: {
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,json}', // add 'json'
filePattern: function(context, pluginHelper) {
let filePattern = pluginHelper.readConfigDefault('filePattern');
return filePattern.replace('}', ',json}');
},
...
},
manifest: {
filePattern: "**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,json}" // add 'json'
filePattern: function(context, pluginHelper) {
let filePattern = pluginHelper.readConfigDefault('filePattern');
return filePattern.replace('}', ',json}');
},
...
}
},
...
};
```
Expand Down

0 comments on commit 991af07

Please sign in to comment.