1 Star 0 Fork 0

王文超/swagger-editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack-hot-dev-server.config.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
var path = require("path")
var webpack = require('webpack')
module.exports = require("./make-webpack-config.js")({
_special: {
minimize: false,
sourcemaps: true,
separateStylesheets: false,
loaders: {
"worker.js": ["worker-loader?inline=true&name=[name].js", "babel"]
}
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({ name: 'commons' }),
],
entry: {
"swagger-editor-bundle": [
"./src/polyfills.js",
'./src/index.js'
],
'swagger-editor-standalone-preset': [
"./src/standalone/styles/main.less",
"./src/polyfills.js",
'./src/standalone/index.js'
],
'commons': ['react']
},
output: {
pathinfo: true,
debug: true,
filename: '[name].js',
library: "[name]",
libraryTarget: "umd",
chunkFilename: "[id].js"
},
devtool: "eval-source-map",
devServer: {
port: 3200,
contentBase: path.join(__dirname, "dev-helpers"),
publicPath: "/",
noInfo: true,
hot: true,
stats: {
colors: true
},
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wchaospace/swagger-editor.git
[email protected]:wchaospace/swagger-editor.git
wchaospace
swagger-editor
swagger-editor
master

搜索帮助