text: const path = require('path');
  const webpack = require('webpack');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
  	mode: process.env.NODE_ENV,
  	entry: './app/render/src/index.js',
  	output: {
  		path: path.resolve(__dirname, 'app/render/html'),
  		filename: 'bundle.js',
  	},
  	
  	plugins: [
  		new HtmlWebpackPlugin({
  			template: './app/render/src/index.html',
  		}),
  	],
  	module: {
  		rules: [
  			{
  				test: /\.jsx?/,
  				exclude: /node_modules/,
  				use: {
  					loader: 'babel-loader',
  					options: {
  						presets: ['@babel/preset-env', '@babel/preset-react']
  					}
  				},
  			},
  			{
  				test: /\.(css)$/,
  				exclude: /node_modules/,
  				use: ['style-loader', 'css-loader'],
  			},
  			{
  				test: /\.(jpe?g|png|gif|svg)$/i, 
  				loader: 'file-loader',
  				// options: {
  				// name: '/app/render/assets/[name].[ext]'
  				// }
  			},
  			{ test: /\.json$/, loader: 'json-loader' },
  		]
  
  	},
  	devServer: {
  		publicPath: '/public',
  		port: 8080,
  		proxy: {
  			'/api/**' : 'https://localhost:3000',
  		},
  	},
  	resolve: {
  		//Enable importing js or jsx without specifying type
  		extensions: ['.js', '.jsx'],
  	},
  };