Files
Frank Schmid be20b6db5e Update examples (#259)
* Updated TypeScript example

* Updated offline example

* Updated multiple statically example

* Updated include npm example

* Update babel example

* Updated dynamic example

* Updated babel multi static example
2017-10-31 15:14:54 +01:00

27 lines
508 B
JavaScript

const path = require('path');
const nodeExternals = require('webpack-node-externals');
const slsw = require('serverless-webpack');
module.exports = {
entry: slsw.lib.entries,
target: 'node',
externals: [nodeExternals()],
output: {
libraryTarget: 'commonjs',
path: path.join(__dirname, '.webpack'),
filename: '[name].js'
},
module: {
rules: [
{
test: /\.js$/,
use: [
{
loader: 'babel-loader'
}
],
}
]
}
};