2023-12-28 13:55:42 +00:00
|
|
|
const path = require("path");
|
2023-12-30 01:43:11 +00:00
|
|
|
|
2023-12-28 13:55:42 +00:00
|
|
|
module.exports = {
|
|
|
|
mode: "production",
|
|
|
|
entry: {
|
|
|
|
main: path.join(__dirname, "src", "main.ts"),
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, "dist"),
|
|
|
|
filename: "[name].js",
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: [".ts", ".js"],
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
loader: "ts-loader",
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|