See the sections below for detailed descriptions of the settings. All settings are optional and will be set to reasonable defaults if missing.
The configuration of the plugin is done by defining a custom: webpack object in your serverless.yml with your specific configuration.
NPM SERVERLESS APPSYNC PLUGIN INSTALL
Install $ npm install serverless-webpack -save-devĪdd the plugin to your serverless.yml file: plugins: - serverless-webpack Configure
Added support for asynchronous webpack configurationįor the complete release notes see the end of this document. The old configuration still works but will be removed in the next major release. You should now use a custom.webpack object to configure everything relevant for the plugin. Recent improvements and important changes for 5.x Support asynchronous webpack configuration. Individually, resulting in smaller Lambda packages that contain only the code andĭependencies needed to run the function. When enabled in your service configuration, functions are packaged and compiled. Integrates with serverless-offline to simulate local API Gateway endpoints. Support of serverless run and serverless run -watch. Support of serverless invoke local and serverless invoke local -watch. Support of serverless package, serverless deploy and serverless deploy function. Configuration possibilities range from zero-config to fully customizable. Use custom resource loaders, optimize your packaged functions individually This plugin is for you if you want to use the latest Javascript version with Babel A Serverless v1.x & v2.x plugin to build your lambda functions with Webpack.