From d13f2873d53f615b2d497ab1e6d0fc12159a804a Mon Sep 17 00:00:00 2001 From: julian laplace Date: Tue, 9 May 2023 19:26:47 +0200 Subject: add controls --- webpack.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index 77a732a..531d909 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin"); module.exports = { mode: "production", entry: "./src/index.jsx", - devtool: 'eval-source-map', + devtool: "eval-source-map", module: { rules: [ { @@ -12,6 +12,15 @@ module.exports = { exclude: /node_modules/, loader: "babel-loader", }, + { + test: /\.(css)$/, + use: ["style-loader", "css-loader"], + }, + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + }, ], }, performance: { -- cgit v1.2.3-70-g09d2