text: const path = require('path');
  const webpack = require('webpack');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const merge = require('webpack-merge');
  
  const base = require('./webpack.config.base');
  
  module.exports = merge(base, {
    mode: 'development',
    devtool: 'cheap-module-source-map',
    output: {
      filename: 'static/js/main.js',
      chunkFilename: 'static/js/[name].chunk.js',
      path: path.resolve(__dirname, 'dist'),
    },
    module: {
      rules: [
        {
          test: /\.css$/,
          use: ['style-loader', 'css-loader', 'postcss-loader'],
        },
        {
          test: /\.(sass|scss)$/,
          use: [
            'style-loader',
            'css-loader',
            'postcss-loader',
            {
              loader: 'sass-loader',
              options: {
                includePaths: ['./node_modules'],
              },
            },
          ],
        },
        {
          test: /\.(svg|png|jpg|jpeg|gif|mp3|ico)$/,
          use: [
            {
              loader: 'file-loader',
              options: {
                name: '[name].[ext]',
                outputPath: 'static/assets',
              },
            },
          ],
        },
      ],
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: path.join(__dirname, 'public', 'index.html'),
        favicon: path.resolve(__dirname, 'public', 'favicon.ico'),
      }),
      new webpack.HotModuleReplacementPlugin(),
    ],
    devServer: {
      contentBase: path.resolve(__dirname, 'dist'),
      port: 3000,
      hot: true,
      stats: 'minimal',
    },
  });
  