-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (35 loc) · 949 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const path = require('path');
const slsw = require('serverless-webpack');
// var nodeExternals = require('webpack-node-externals');
module.exports = {
// entry: slsw.lib.entries,
entry: {
'handlers/Http/GET/get-handler': './handlers/Http/GET/get-handler.ts',
'handlers/Http/POST/post-handler': './handlers/Http/POST/post-handler.ts',
'handlers/Schedule/minute-handler': './handlers/Schedule/minute-handler.ts',
'handlers/Trigger/MyTrigger/trigger-handler':
'./handlers/Trigger/MyTrigger/trigger-handler.ts',
},
resolve: {
extensions: ['.js', '.json', '.ts', '.tsx'],
},
output: {
libraryTarget: 'commonjs',
path: path.join(__dirname, '.webpack'),
filename: '[name].js',
},
target: 'node',
// externals: [nodeExternals()],
module: {
rules: [
{
test: /\.ts(x?)$/,
use: [
{
loader: 'ts-loader',
},
],
},
],
},
};