text: const path = require('path');
  
  module.exports = {
  	mode: process.env.NODE_ENV,
  	entry: path.resolve(__dirname, 'client/index.js'),
  	output: {
  		path: path.resolve(__dirname, 'build'),
  		publicPath: '/build/',
  		filename: 'bundle.js'
  	},
  	devServer: {
  		contentBase: path.join(__dirname, 'client'),
  		publicPath: '/build/',
  		proxy: {
  			'/api': 'http://localhost:3000',
  		},
  		hot: true,
  	},
  	module: {
  		rules: [
  			{
  				test: /\.jsx?/,
  				exclude: /node_modules/,
  				use: {
  					loader: 'babel-loader',
  					options: {
  						presets: ['@babel/preset-env', '@babel/preset-react'],
  						plugins: ['@babel/plugin-transform-runtime', '@babel/transform-async-to-generator', '@babel/plugin-syntax-jsx'],
  					}
  				}
  			},
  			{
  				test: /\.css$/i,
  				use: ['style-loader', 'css-loader'],
  			},
  		]
  	},
  	resolve: {
  		extensions: ['.js', '.jsx'],
  	},
  }
  