Ekapp/swagger/webpack/bundle.babel.js

38 lines
635 B
JavaScript
Raw Normal View History

2020-06-10 06:25:21 +00:00
/**
* @prettier
*/
import configBuilder from "./_config-builder"
const result = configBuilder(
{
minimize: true,
mangle: true,
sourcemaps: true,
includeDependencies: true,
includeStyles: true,
emitWorkerAssets: true,
},
{
entry: {
"swagger-editor-bundle": [
"./src/styles/main.less",
"./src/polyfills.js",
"./src/index.js",
],
},
output: {
library: "SwaggerEditorBundle",
},
performance: {
hints: "error",
maxEntrypointSize: 1024000 * 3.25, // MB
maxAssetSize: 1024000 * 3.25, // MB
},
}
)
export default result