text: const HtmlWebpackPlugin = require('html-webpack-plugin');
  const { VueLoaderPlugin } = require('vue-loader');
  
  module.exports = {
      entry: './src/index.js',
      output: {
          filename: '[name].[contenthash].js'
      },
      resolve: {
          extensions: ['.js', '.vue']
      },
      module: {
          rules: [
              {
                  test: /\.(png|jpe?g|gif|woff|svg|eot|ttf)$/i,
                  use: [
                      {
                          loader: 'file-loader'
                      }
                  ]
              },
              {
                  test: /\.vue$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'vue-loader'
                  }
              },
              {
                  test: /\.s?css$/,
                  use: ['vue-style-loader', 'style-loader', 'css-loader', 'sass-loader']
              },
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'babel-loader',
                      options: {
                          presets: ['@babel/preset-env'],
                          plugins: ['@babel/plugin-transform-runtime']
                      }
                  }
              }
          ]
      },
      plugins: [
          new VueLoaderPlugin(),
          new HtmlWebpackPlugin({
              template: './public/index.html'
          })
      ]
  };