Files
swagger-ui/webpack-hot-dev-server.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

53 lines
1019 B
JavaScript

const styleRules = require("./webpack-dist-style.config.js")
const rules = [
{ test: /\.(worker\.js)(\?.*)?$/,
use: [
{
loader: "worker-loader",
options: {
inline: true
}
},
{ loader: "babel-loader?retainLines=true" }
]
},
...styleRules
]
module.exports = require("./make-webpack-config")(rules, {
_special: {
separateStylesheets: true,
sourcemaps: true,
},
entry: {
"swagger-ui": [
"./src/style/main.scss"
],
"swagger-ui-bundle": [
"./src/polyfills",
"./src/core/index.js"
],
"swagger-ui-standalone-preset": [
"./src/polyfills",
"./src/standalone/index.js",
]
},
output: {
pathinfo: true,
filename: "[name].js",
library: "[name]",
libraryTarget: "umd",
chunkFilename: "[id].js"
},
devServer: {
port: 3200,
publicPath: "/",
noInfo: true,
disableHostCheck: true, // for development within VMs
stats: {
colors: true
},
},
})