From 8cd758e5b50a207ed05b86b1674ff81d334b57d0 Mon Sep 17 00:00:00 2001 From: danbulant Date: Fri, 7 Feb 2020 18:52:47 +0100 Subject: [PATCH] Add basic react config --- client/webpack.config.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/webpack.config.js diff --git a/client/webpack.config.js b/client/webpack.config.js new file mode 100644 index 0000000..351da6c --- /dev/null +++ b/client/webpack.config.js @@ -0,0 +1,24 @@ +module.exports = { + context: __dirname + "/src", + entry: { + javascript: "./app.js", + html: "./index.html", + }, + + output: { + filename: "app.js", + path: __dirname + "/dist", + }, + + loaders: [ + { + test: /\.html$/, + loader: "file?name=[name].[ext]", + }, + { + test: /\.js$/, + exclude: /node_modules/, + loaders: ["react-hot", "babel-loader"], + } + ], +} \ No newline at end of file