File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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:
132132
133133` ` ` js
134134// webpack.config.js
135+ const path = require('path');
135136
136137module.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
150151you are not satisfy with the current output info, you can overwrite it in your `webpack.config.js`
151152
152153` ` ` js
You can’t perform that action at this time.
0 commit comments