const HtmlWebPackPlugin = require('html-webpack-plugin');
const path = require('path');

module.exports = {
  entry: './src/index.jsx',
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/,
        exclude: /node_modules/,
        resolve: {
          extensions: [
            '.js',
            '.jsx',
          ],
        },
        use: {
          loader: 'babel-loader',
        },
      },
      {
        test: /\.css$/,
        use: [
          'style-loader',
          'css-loader',
        ],
      },
      {
        test: /\.html$/,
        use: [
          {
            loader: 'html-loader',
          },
        ],
      },
    ],
  },
  plugins: [
    new HtmlWebPackPlugin({
      template: './public/index.html',
      filename: './index.html',
    }),
  ],
  devServer: {
    historyApiFallback: true,
  },
};

@@ -117,12 +117,8 @@
  './
-src/
 inde
@@ -125,16 +125,130 @@
 x.jsx',%0A
+  output: %7B%0A    filename: 'bundle.js',%0A    sourceMapFilename: '%5Bfile%5D.map',%0A    path: path.resolve('dist/'),%0A  %7D,%0A
   module
@@ -750,24 +750,250 @@
 %5D,%0A      %7D,%0A
+      %7B%0A        test: /%5C.(png%7Csvg%7Cjpg%7Cjpeg%7Cgif)$/,%0A        use: %5B%0A          %7B%0A            loader: 'file-loader',%0A            options: %7B%0A              name: '%5Bpath%5D%5Bname%5D.%5Bext%5D',%0A            %7D,%0A          %7D,%0A        %5D,%0A      %7D,%0A
     %5D,%0A  %7D,%0A
@@ -1056,15 +1056,8 @@
  './
-public/
 inde
@@ -1119,17 +1119,91 @@
  dev
-Server: %7B
+tool: 'inline-source-map',%0A  devServer: %7B%0A    contentBase: path.resolve(__dirname),
 %0A   

update entry file path; resolve image files