const path = require('path');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: [
    './src/js/index.js',
    './src/scss/style.scss'
  ],
  output: {
    filename: './js/bundle.js'
  },
  module: {
    rules: [{
        test: /\.js$/,
        include: path.resolve(__dirname, 'src/js'),
        use: {
          loader: 'babel-loader?presets=env'
        }
      },
      {
        test: /\.(sass|scss)$/,
        include: path.resolve(__dirname, 'src/scss'),
        use: ExtractTextPlugin.extract({
          use: ['css-loader?url=false', 'sass-loader']
        })
      },
      /*{
        test: /\.html$/,
        include: path.resolve(__dirname, 'src/templates'),
        loader: 'underscore-template-loader',
        query: {
          engine: 'lodash',
        }
      },*/
      {
        test: /\.html$/,
        include: path.resolve(__dirname, 'src/templates'),
            loader: 'raw-loader',
      },
      /*{
        test: /\.(png|jpg|gif|svg)$/,
        use: [
          {
            loader: 'file-loader',
            options: {
              name: '[path][name].[ext]',
            }  
          }
        ]
      }*/
    ]
  },
  plugins: [
    new ExtractTextPlugin({
      filename: './css/style.bundle.css',
      allChunks: true,
    }),
    new HtmlWebpackPlugin({
      template: 'src/index.html',
      filename: './index.html',
      title: 'My Awesome application',
      inject: false,
    }),
    /*new CopyWebpackPlugin([{
        from: './node_modules/lightgallery/src/img',
        to: './img'
      },
      {
        from: './node_modules/lightgallery/src/fonts',
        to: './fonts'
      },
      {
        from: './src/fonts',
        to: './fonts'
      },
      {
        from: './src/favicon',
        to: './favicon'
      },
      {
        from: './src/img',
        to: './img'
      },
      {
        from: './src/uploads',
        to: './uploads'
      }
    ]),*/
  ],
};
@@ -728,36 +728,34 @@
 %0A      %7D,%0A      
-/*
 %7B%0A
+
         test: /%5C
@@ -843,460 +843,29 @@
 r: '
-underscore-template-loader',%0A        query: %7B%0A          engine: 'lodash',%0A        %7D%0A      %7D,*/%0A      %7B%0A        test: /%5C.html$/,%0A        include: path.resolve(__dirname, 'src/templates'),%0A            loader: 'raw-loader',%0A      %7D,%0A      /*%7B%0A        test: /%5C.(png%7Cjpg%7Cgif%7Csvg)$/,%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*/
+raw-loader',%0A      %7D,
 %0A   

Delete unnecessary rules