summaryrefslogtreecommitdiff
path: root/webpack/standalone.babel.js
blob: 2b79a6cbd65600dddf776d455ce5620ec1099cea (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
/**
 * @prettier
 */

import configBuilder from "./_config-builder"

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

    output: {
      globalObject: "this",
      library: "SwaggerUIStandalonePreset",
    },
  }
)

export default result