Skip to content

Commit abff7bf

Browse files
authored
Add webpack configuration for TypeScript project
1 parent f9580b9 commit abff7bf

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

webpack.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
entry: "./apps/worker/index.ts",
5+
target: "node",
6+
mode: "production",
7+
module: {
8+
rules: [
9+
{
10+
test: /\.ts$/,
11+
use: "ts-loader",
12+
exclude: /node_modules/
13+
}
14+
]
15+
},
16+
resolve: {
17+
extensions: [".ts", ".js"]
18+
},
19+
output: {
20+
filename: "bundle.js",
21+
path: path.resolve(__dirname, "dist")
22+
}
23+
};

0 commit comments

Comments
 (0)