Skip to content

Instantly share code, notes, and snippets.

@EdyVision
Created June 25, 2019 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdyVision/8c0b7a5871b6915b79fedaface31fd90 to your computer and use it in GitHub Desktop.
Save EdyVision/8c0b7a5871b6915b79fedaface31fd90 to your computer and use it in GitHub Desktop.
Serverless Webpack Config
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