1 Star 0 Fork 0

jdktomcat/swagger-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack-dist-bundle.config.js 829 Bytes
一键复制 编辑 原始数据 按行查看 历史
Fritz 提交于 2018-05-22 13:31 . build(umd-module): prevent mangling (#4320)
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",
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jdktomcat/swagger-ui.git
git@gitee.com:jdktomcat/swagger-ui.git
jdktomcat
swagger-ui
swagger-ui
master

搜索帮助