File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -132,21 +132,22 @@ for best compatibility with external dependencies:
132
132
133
133
` ` ` js
134
134
// webpack.config.js
135
+ const path = require('path');
135
136
136
137
module.exports = {
137
138
// ...
138
139
output: {
139
140
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',
142
143
},
143
144
// ...
144
145
};
145
146
` ` `
146
147
147
148
# ## Stats
148
149
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
150
151
you are not satisfy with the current output info, you can overwrite it in your `webpack.config.js`
151
152
152
153
` ` ` js
You can’t perform that action at this time.
0 commit comments