text: const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  const path = require('path');
  
  module.exports = {
    entry: {
      projectA: './styles/projectA/all.scss',
      projectB: './styles/projectB/all.scss',
    },
    output: {
      filename: '[name].js',
      path: path.resolve(__dirname, 'dist'),
    },
    mode: 'development',
    module: {
      rules: [
        {
          test: /\.s[ac]ss$/i,
          use: [
            MiniCssExtractPlugin.loader,
            'css-loader',
            'sass-loader',
          ],
        },
      ],
    },
    plugins: [
      new MiniCssExtractPlugin({
        filename: '[name].css',
      }),
    ],
  };