summaryrefslogtreecommitdiff
path: root/webpack/standalone.js
blob: d059ef3fc811b0b9819e86c63ab81905b4cbab15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 * @prettier
 */

const configBuilder = require("./_config-builder")

const result = configBuilder(
  {
    minimize: true,
    mangle: true,
    sourcemaps: false,
  },
  {
    entry: {
      "swagger-ui-standalone-preset": [
        "./src/standalone/presets/standalone/index.js",
      ],
    },

    output: {
      globalObject: "this",
      library: {
        name: "SwaggerUIStandalonePreset",
        export: "default",
      },
    },
  }
)

module.exports = result