summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2023-06-14 22:49:35 +0200
committerjulian laplace <julescarbon@gmail.com>2023-06-14 22:49:35 +0200
commita8cbeae2d3677fe48bc88f3e8d61cf4649eef899 (patch)
tree5a4c33e24c8d0aa0430562a4b84e81c03d6a0113 /webpack.config.js
init
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..531d909
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,31 @@
+const path = require("path");
+const HtmlWebpackPlugin = require("html-webpack-plugin");
+
+module.exports = {
+ mode: "production",
+ entry: "./src/index.jsx",
+ devtool: "eval-source-map",
+ module: {
+ rules: [
+ {
+ test: /\.(js|jsx)$/,
+ exclude: /node_modules/,
+ loader: "babel-loader",
+ },
+ {
+ test: /\.(css)$/,
+ use: ["style-loader", "css-loader"],
+ },
+ {
+ test: /\.tsx?$/,
+ use: 'ts-loader',
+ exclude: /node_modules/,
+ },
+ ],
+ },
+ performance: {
+ hints: false,
+ maxEntrypointSize: 512000,
+ maxAssetSize: 512000,
+ },
+};