-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
32 lines (31 loc) · 959 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
const path = require("path");
module.exports = {
mode: "production",
target: "node",
entry: {
demo: {import: "./skills/demo/src/index.ts", filename: 'skills/[name]/dist/skill.js'},
"get-time": {import: "./skills/get-time/src/index.ts", filename: 'skills/[name]/dist/skill.js'},
"shopping-list": {import: "./skills/shopping-list/src/index.ts", filename: 'skills/[name]/dist/skill.js'},
"weather": {import: "./skills/weather/src/index.ts", filename: 'skills/[name]/dist/skill.js'},
"static-answer": {import: "./skills/static-answer/src/index.ts", filename: 'skills/[name]/dist/skill.js'},
},
module: {
rules: [
{
test: /\.ts$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [".ts", ".js"],
},
externals: {
bufferutil: "bufferutil",
"utf-8-validate": "utf-8-validate",
},
output: {
path: path.resolve(__dirname, "."),
}
};