text: const webpack = require("webpack");
  const path = require("path");
  const MiniCssExtractPlugin = require('mini-css-extract-plugin')
  const cssOutput = './public/site.css'
  
  let config = {
    entry: "./src/index.js",
    output: {
      path: path.resolve(__dirname, "./public"),
      filename: "./bundle.js"
    },
    module: {
      rules: [{
        test: /\.scss$/,
        use: [
            MiniCssExtractPlugin.loader,
            {
              loader: 'css-loader'
            },
            {
              loader: 'sass-loader',
              options: {
                sourceMap: true,
                // options...
              }
            }
          ]
      }]
    },
    plugins: [
      new MiniCssExtractPlugin({
        filename: 'editor.css'
      }),
    ]
  
  }
  
  module.exports = config;