lmlfc-bttv/webpack.config.js

24 lines
416 B
JavaScript

const path = require("path");
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/,
},
],
},
};