feat: expose plugins and presets on SwaggerUI global symbol (#9189)
Part of this commit is also: - complete plugins consolidation - complete presets consolidation - build system consolidation Refs #9188
This commit is contained in:
30
webpack/standalone.js
Normal file
30
webpack/standalone.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* @prettier
|
||||
*/
|
||||
|
||||
const configBuilder = require("./_config-builder")
|
||||
|
||||
const result = configBuilder(
|
||||
{
|
||||
minimize: true,
|
||||
mangle: true,
|
||||
sourcemaps: true,
|
||||
},
|
||||
{
|
||||
entry: {
|
||||
"swagger-ui-standalone-preset": [
|
||||
"./src/standalone/presets/standalone/index.js",
|
||||
],
|
||||
},
|
||||
|
||||
output: {
|
||||
globalObject: "this",
|
||||
library: {
|
||||
name: "SwaggerUIStandalonePreset",
|
||||
export: "default",
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
module.exports = result
|
||||
Reference in New Issue
Block a user