Ekapp/swagger/webpack/core.babel.js

34 lines
560 B
JavaScript

/**
* @prettier
*/
import configBuilder from "./_config-builder"
const result = configBuilder(
{
minimize: true,
mangle: true,
sourcemaps: true,
includeDependencies: false,
includeStyles: false,
emitWorkerAssets: false,
},
{
entry: {
"swagger-editor": ["./src/polyfills.js", "./src/index.js"],
},
output: {
library: "SwaggerEditorBundle",
},
performance: {
hints: "error",
maxEntrypointSize: 1024000, // 1MB
maxAssetSize: 1024000, // 1MB
},
}
)
export default result