Browse Source

Merge pull request #24 from StefH/master

Update readme.md file
master
Nicola Peduzzi 8 years ago
committed by GitHub
parent
commit
a1482b8168
  1. 4
      README.md

4
README.md

@ -52,11 +52,11 @@ By default, the plugin will try to bundle all dependencies. However, you don't
want to include all modules in some cases such as selectively import, excluding
builtin package (aws-sdk) and handling webpack-incompatible modules. In this case,
you add all the modules, you want to exclude from bundled files, into `externals` field
of your `webpack.config.json` and add those, you want to include in final distribution,
of your `webpack.config.js` and add those, you want to include in final distribution,
into `serverless.yml`:
```javascript
// webpack.config.json
// webpack.config.js
{
externals: ["module1", "module2"] // modules to be excluded from bundled file
}

Loading…
Cancel
Save