text: const path = require( 'path' );
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  const devMode = process.env.NODE_ENV !== 'production';
  
  module.exports = {
      entry: {
          index: './src/js/index.js'
      },
      output: {
          filename: '[name].bundle.js',
          path: path.resolve(__dirname, 'dist'),
          publicPath: '/dist'
      },
      devServer: {},
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: 'babel-loader',
              },
              {
                  test: /\.(sa|sc|c)ss$/,
                  use: [
                      'style-loader',
                      MiniCssExtractPlugin.loader,
                      {
                          loader: 'css-loader',
                          options: {
                              sourceMap: true,
                          },
                      },
                      {
                          loader: 'postcss-loader',
                          options: {
                              sourceMap: true,
                              config: { path: 'src/js/postcss.config.js'}
                          }
                      },
                      {
                          loader: 'sass-loader',
                          options: {
                              sourceMap: true,
                          },
                      }
                  ],
              },
          ]
      },
      plugins: [
          new MiniCssExtractPlugin({
              // Options similar to the same options in webpackOptions.output
              // both options are optional
              filename: '[name].css',
              chunkFilename: '[id].css'
          }),
      ],
  };