Skip to content

Commit

Permalink
Merge pull request #265 from thepont/patch-1
Browse files Browse the repository at this point in the history
Update README.md to fix sample config.
  • Loading branch information
HyperBrain committed Oct 31, 2017
2 parents 0002a40 + 470a744 commit 0c650a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,22 @@ for best compatibility with external dependencies:

```js
// webpack.config.js
const path = require('path');

module.exports = {
// ...
output: {
libraryTarget: 'commonjs',
path: '.webpack',
filename: 'handler.js', // this should match the first part of function handler in `serverless.yml`
path: path.resolve(__dirname, '.webpack'),
filename: '[name].js',
},
// ...
};
```

### Stats

By default, the plugin will print a quite verbose bundle information to your console. However, if
By default, the plugin will print a quite verbose bundle information to your console. However, if
you are not satisfy with the current output info, you can overwrite it in your `webpack.config.js`

```js
Expand Down

0 comments on commit 0c650a0

Please sign in to comment.