text: /* eslint-disable import/no-extraneous-dependencies */
  const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: {
      main: './src/index.js',
      vendor: './src/vendor.js',
    },
    mode: 'development',
    output: {
      filename: '[name].bundle.js',
      path: path.resolve(__dirname, 'dist'),
    },
    plugins: [new HtmlWebpackPlugin({ template: './src/template.html' })],
    module: {
      rules: [
        {
          test: /\.html$/,
          use: ['html-loader'],
        },
        {
          test: /\.s[ac]ss$/i,
          use: [
            // Creates `style` nodes from JS strings
            'style-loader',
            // Translates CSS into CommonJS
            'css-loader',
            // Compiles Sass to CSS
            'sass-loader',
            'postcss-loader',
  
          ],
        },
  
        {
  
          test: /\.(png|jpg)$/,
          loader: 'url-loader',
  
        },
      ],
    },
  };
  