text: const { merge } = require('webpack-merge');
  const webpack = require('webpack');
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  
  const common = require('./webpack.common.js');
  
  module.exports = merge(common, {
    mode: 'production',
    module: {
      rules: [
        {
          test: /\.s[ac]ss$/i,
          use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader']
        }
      ]
    },
    plugins: [
      new MiniCssExtractPlugin({
        filename: '[name].[hash].css',
        chunkFilename: '[id].[hash].css',
        ignoreOrder: false
      }),
      new webpack.DefinePlugin({
        __DEV__: JSON.stringify(false)
      })
    ]
  });
  