Files
swagger-ui/webpack-hot-dev-server.config.js
Kyle Shockey 229bd1df9a Fix dev server
2017-03-30 00:16:17 -07:00

40 lines
752 B
JavaScript

var path = require('path')
module.exports = require("./make-webpack-config")({
_special: {
loaders: {
'jsx': [ "react-hot-loader", "babel" ]
},
separateStylesheets: false,
},
devtool: "eval",
entry: {
'swagger-ui-bundle': [
'babel-polyfill',
'./src/core/index.js'
],
'swagger-ui-standalone-preset': [
'./src/standalone/index.js'
]
},
output: {
pathinfo: true,
debug: true,
filename: '[name].js',
library: "[name]",
libraryTarget: "umd",
chunkFilename: "[id].js"
},
devServer: {
port: 3200,
path: path.join(__dirname, 'dev-helpers'),
publicPath: "/",
noInfo: true,
colors: true,
hot: true,
stats: {
colors: true
},
},
})