-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for serverless-webpack plugin #12
Comments
I use this plugin and just started using serverless-webpack plugin and am interested in addressing this. Are you having an issue with the --inject-passthru option or another behavior? I've opened a PR that addresses an issue with the --inject-passthru option when using serverless-webpack #13 |
I use serverless-webpack and running
Running with This is my service: serverless-webpack-typescript
# Add the serverless-webpack plugin
plugins:
- serverless-webpack
- serverless-plugin-bespoken
provider:
name: aws
runtime: nodejs8.10
stage: ${opt:stage, 'dev'} # default stage is dev, but you can override it.
region: us-east-1
memorySize: 256
cfLogs: true # AWS Cloudformation logging
custom:
webpack:
webpackConfig: './webpack.config.js' # Name of webpack configuration file
includeModules: true # Node modules configuration for packaging
# packager: 'npm' # Packager that will be used to package your external modules
# package:
# individually: true # Enables individual packaging for each function. If true you must provide package for each function. Defaults to false
functions:
skill:
handler: src/index.handler
events:
- alexaSkill And this is my const path = require('path');
const slsw = require('serverless-webpack');
const nodeExternals = require('webpack-node-externals');
console.log(slsw.lib.entries);
module.exports = {
entry: slsw.lib.entries,
module: {
rules: [
{
test: /\.ts(x?)$/,
use: 'ts-loader',
exclude: /node_modules/,
}
]
},
optimization: {
// We no not want to minimize our code.
minimize: false
},
performance: {
// Turn off size warnings for entry points
hints: false
},
devtool: 'nosources-source-map',
// externals: [nodeExternals()],
resolve: {
extensions: ['.tsx', '.ts', '.js', '.json']
},
output: {
libraryTarget: 'commonjs2',
path: path.join(__dirname, 'dist/'),
filename: '[name].js',
sourceMapFilename: '[file].map'
},
target: 'node',
}; |
How is this issue moving ? Was #13 meant to solve this ? Is it documented anywhere how to use this plugin with serverless webpack ? Would be happy to help if I got any direction to contribute and move it forward. |
Is there support for running webpack bundeling with bespoken?
The text was updated successfully, but these errors were encountered: