Skip to content

Commit ce7ae24

Browse files
authored
Update README.md
Path needs to be an absolute path since webpack 2.3.1, sample code will not run. `- configuration.output.path: The provided value ".webpack/service" is not an absolute path!`
1 parent 0002a40 commit ce7ae24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,13 @@ 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+
path: path.resolve(__dirname, '.webpack'),
141142
filename: 'handler.js', // this should match the first part of function handler in `serverless.yml`
142143
},
143144
// ...

0 commit comments

Comments
 (0)