This commit is contained in:
2023-01-26 20:55:52 +00:00
parent 33f604f5cb
commit 7bd647a7a0
109 changed files with 19909 additions and 15092 deletions

25
webpack.config.js Normal file
View File

@@ -0,0 +1,25 @@
const path = require("path");
module.exports = (env) => {
const prod = env.NODE_ENV === "production";
return {
entry: "./src/index.ts",
mode: prod ? "production" : "development",
module: {
rules: [
{
test: /\.ts?$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [".ts", ".js"],
},
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "dist"),
},
};
};