update to Webpack 5
Change-Id: Icc238a9f981ecaf5c5802c9a3a4f0bcb89e7d42b
diff --git a/client/webpack.config.js b/client/webpack.config.js
new file mode 100644
index 0000000..84ff411
--- /dev/null
+++ b/client/webpack.config.js
@@ -0,0 +1,35 @@
+const path = require('path')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+
+module.exports = {
+ entry: path.resolve(__dirname, 'src', 'index.js'),
+ output: {
+ path: path.resolve(__dirname, 'dist'),
+ filename: 'bundle.js',
+ publicPath: '/'
+ },
+ mode: 'development',
+ module: {
+ rules: [
+ {
+ test: /\.jsx?/,
+ exclude: /node_modules/,
+ use: {
+ loader: 'babel-loader',
+ options: {
+ presets: ['@babel/preset-env', '@babel/preset-react']
+ }
+ }
+ },
+ {
+ test: /\.css$/i,
+ use: ['style-loader', 'css-loader'],
+ }
+ ]
+ },
+ plugins: [
+ new HtmlWebpackPlugin({
+ template: path.resolve(__dirname, 'src', 'index.ejs')
+ })
+ ]
+}
\ No newline at end of file