forked from aws/aws-toolkit-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
40 lines (34 loc) · 1.24 KB
/
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
37
38
39
40
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This webpack config is used for everything else that the TypeScript transpilation does not do.
*
* Some things include:
* - Building the Web toolkit (Web extensions must be a single file, hence webpack)
* - Building Vue.js files for webviews
*/
const baseConfigFactory = require('../webpack.base.config')
const baseVueConfigFactory = require('../webpack.vue.config')
const baseWebConfigsFactory = require('../webpack.web.config')
module.exports = (env, argv) => {
const baseVueConfig = baseVueConfigFactory(env, argv)
const baseConfig = baseConfigFactory(env, argv)
const config = {
...baseConfig,
entry: {
'src/stepFunctions/asl/aslServer': './src/stepFunctions/asl/aslServer.ts',
},
}
const vueConfig = {
...baseVueConfig.config,
// Inject entry point into all configs.
entry: {
...baseVueConfig.createVueEntries(),
// The above `createVueEntries` path pattern match does not catch this:
'src/amazonq/webview/ui/amazonq-ui': './src/amazonq/webview/ui/main.ts',
},
}
return [config, vueConfig]
}