Files
swagger-ui/webpack-dist-bundle.config.js
kyle 9f10ab1d65 housekeeping: cypress standalone failures (via #5446)
* webpack.dist-style.config.js -> webpack-dist-style.config.js

* correctly generate stylesheets in dev server

* attempt to recover from missing StandalonePlugin in Cypress runner
2019-07-08 01:15:26 -05:00

44 lines
829 B
JavaScript

const path = require("path")
const styleRules = require("./webpack-dist-style.config.js")
let rules = [
{ test: /\.(worker\.js)(\?.*)?$/,
use: [
{
loader: "worker-loader",
options: {
inline: true,
name: "[name].js"
}
},
{ loader: "babel-loader?retainLines=true" }
]
}
]
module.exports = require("./make-webpack-config.js")(rules, {
_special: {
separateStylesheets: true,
minimize: true,
mangle: true,
sourcemaps: true,
},
entry: {
"swagger-ui-bundle": [
"./src/polyfills",
"./src/core/index.js"
]
},
output: {
path: path.join(__dirname, "dist"),
publicPath: "/dist",
library: "SwaggerUIBundle",
libraryTarget: "umd",
filename: "[name].js",
chunkFilename: "js/[name].js",
},
})