text: const path = require("path")
  const styleRules = require("./webpack.dist-style.config.js")
  
  let rules = [
    { test: /\.(worker\.js)(\?.*)?$/,
      use: [
        {
          loader: "worker-loader",
          options: {
            inline: true,
            name: "[name].js"
          }
        },
        { loader: "babel-loader" }
      ]
    }
  ]
  
  module.exports = require("./make-webpack-config.js")(rules, {
    _special: {
      separateStylesheets: true,
      minimize: true,
      sourcemaps: true,
    },
  
    entry: {
      "swagger-ui-bundle": [
        "./src/polyfills",
        "./src/core/index.js"
      ]
    },
  
    output:  {
      path: path.join(__dirname, "dist"),
      publicPath: "/dist",
      library: "SwaggerUIBundle",
      libraryTarget: "umd",
      filename: "[name].[chunkhash].js",
      chunkFilename: "js/[name].[chunkhash].js",
    },
  
  })
  