Skip to content

Commit 47e49d1

Browse files
authored
Merge pull request serverless-heaven#265 from thepont/patch-1
Update README.md to fix sample config.
2 parents 0002a40 + e1bec7f commit 47e49d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,22 @@ for best compatibility with external dependencies:
132132

133133
```js
134134
// webpack.config.js
135+
const path = require('path');
135136
136137
module.exports = {
137138
// ...
138139
output: {
139140
libraryTarget: 'commonjs',
140-
path: '.webpack',
141-
filename: 'handler.js', // this should match the first part of function handler in `serverless.yml`
141+
path: path.resolve(__dirname, '.webpack'),
142+
filename: '[name].js',
142143
},
143144
// ...
144145
};
145146
```
146147

147148
### Stats
148149

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

152153
```js

0 commit comments

Comments
 (0)