text: const merge = require('webpack-merge')
  const MiniCssExtractPlugin = require('mini-css-extract-plugin')
  const common = require('./webpack.common.js')
  
  module.exports = merge(common, {
      mode: 'production',
      module: {
          rules: [
              {
                  test: /\.(sa|sc|c)ss$/,
                  use: [
                      {
                          loader: MiniCssExtractPlugin.loader,
                          options: {
                              hmr: process.env.NODE_ENV === 'development',
                          },
                      },
                      'css-loader',
                      'sass-loader',
                  ],
              },
          ],
      },
      plugins: [
          new MiniCssExtractPlugin({
              filename: 'css/[name].css',
          }),
      ],
  })
  