Files
serverless-webpack/examples/typescript/webpack.config.js
T
2016-09-10 21:41:49 +02:00

17 lines
299 B
JavaScript

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