Files
Francisco GuimarĂ£es a7045b23d1 - Upgrading node runtime
- Using slsw.lib.entries with in typescript example
2017-08-02 20:58:17 -03:00

18 lines
344 B
JavaScript

var path = require('path');
const slsw = require('serverless-webpack');
module.exports = {
entry: slsw.lib.entries,
output: {
libraryTarget: 'commonjs',
path: path.join(__dirname, '.webpack'),
filename: '[name].js'
},
target: 'node',
module: {
loaders: [
{ test: /\.ts(x?)$/, loader: 'ts-loader' }
]
}
};