-
Notifications
You must be signed in to change notification settings - Fork 47
/
webpack.config.lambda.api.ts
39 lines (37 loc) · 1.65 KB
/
webpack.config.lambda.api.ts
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
37
38
39
/* eslint-disable import/no-default-export */
import config from './webpack.config.lambda';
import webpack from 'webpack';
const apiConfig: webpack.Configuration = {
...(config as any),
entry: {
api: './web-api/terraform/template/lambdas/api.ts',
'api-public': './web-api/terraform/template/lambdas/api-public.ts',
'cognito-authorizer':
'./web-api/terraform/template/lambdas/cognito-authorizer.ts',
'cognito-triggers':
'./web-api/terraform/template/lambdas/cognito-triggers.ts',
cron: './web-api/terraform/template/lambdas/cron.ts',
'handle-bounced-service-email':
'./web-api/terraform/template/lambdas/handle-bounced-service-email.ts',
'maintenance-notify':
'./web-api/terraform/template/lambdas/maintenance-notify.ts',
'pdf-generation': './web-api/terraform/template/lambdas/pdf-generation.ts',
'public-api-authorizer':
'./web-api/terraform/template/lambdas/public-api-authorizer.ts',
'seal-in-lower-environment':
'./web-api/terraform/template/lambdas/seal-in-lower-environment.ts',
'send-emails': './web-api/terraform/template/lambdas/send-emails.ts',
streams: './web-api/terraform/template/lambdas/streams.ts',
'trial-session': './web-api/terraform/template/lambdas/trial-session.ts',
'websocket-authorizer':
'./web-api/terraform/template/lambdas/websocket-authorizer.ts',
websockets: './web-api/terraform/template/lambdas/websockets.ts',
'worker-handler': './web-api/terraform/template/lambdas/worker-handler.ts',
},
output: {
clean: true,
libraryTarget: 'umd',
path: __dirname + '/web-api/terraform/template/lambdas/dist',
},
};
export default apiConfig;