Created
June 25, 2019 22:36
-
-
Save EdyVision/8c0b7a5871b6915b79fedaface31fd90 to your computer and use it in GitHub Desktop.
Serverless Webpack Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const slsw = require('serverless-webpack'); | |
const nodeExternals = require('webpack-node-externals'); | |
module.exports = { | |
entry: slsw.lib.entries, | |
target: 'node', | |
devtool: 'source-map', | |
externals: [nodeExternals()], | |
mode: slsw.lib.webpack.isLocal ? 'development' : 'production', | |
optimization: { | |
minimize: false | |
}, | |
performance: { | |
hints: false | |
}, | |
module: { | |
rules: [] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment