Skip to content

Commit

Permalink
Adds documentation in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
designfrontier committed Jan 7, 2019
1 parent d17097a commit 824458d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,25 @@ from a local folder (e.g. `"mymodule": "file:../../myOtherProject/mymodule"`).
With that you can do test deployments from the local machine with different
module versions or modules before they are published officially.
#### Exclude Files with similar names
If you have a project structure that uses something like `index.js` and a
co-located `index.test.js` then you have likely seen an error like:
`WARNING: More than one matching handlers found for index. Using index.js`
This config option allows you to exlcude files that match a glob from function
resolution. Just add: `excludeFiles: **/*.test.js` (with whatever glob you want
to exclude).
```yaml
# serverless.yml
custom:
webpack:
excludeFiles: **/*.test.js
```
This is also useful for projects that use TypeScript.
#### Examples
You can find an example setups in the [`examples`][link-examples] folder.
Expand Down

0 comments on commit 824458d

Please sign in to comment.