text: const path = require('path');
  const MiniCssExtractPlugin = require("mini-css-extract-plugin");
  
  module.exports = {
    entry: "./src/widget.ts",
    output: {
      path: path.resolve("../joist/static/joist/"),
      filename: "joist.js",
      libraryExport: "Joist",
      libraryTarget: "umd"
    },
    resolve: {
      extensions: [".ts", ".tsx", ".js"]
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          loader: "ts-loader"
        },
        {
          test: /\.s[ac]ss$/i,
          use: ["style-loader", "css-loader", "sass-loader"]
        }
      ]
    }
  };
  