We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ab12e commit 824b759Copy full SHA for 824b759
lib/validate.js
@@ -102,16 +102,10 @@ module.exports = {
102
// Default output
103
if (!this.webpackConfig.output) {
104
const outputPath = path.join(this.serverless.config.servicePath, '.webpack');
105
- const outputFilename = path.basename(
106
- _.isArray(this.webpackConfig.entry)
107
- && this.webpackConfig.entry[this.webpackConfig.entry.length - 1]
108
- || this.webpackConfig.entry
109
- || 'handler.js'
110
- );
111
this.webpackConfig.output = {
112
libraryTarget: 'commonjs',
113
path: outputPath,
114
- filename: outputFilename,
+ filename: '[name].js',
115
};
116
}
117
0 commit comments