Fetch the repository succeeded.
This action will force synchronization from JVS/jvs-teamwork-ui, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
/**
* 配置该文件可以参考:
* https://cli.vuejs.org/zh/config/#%E7%9B%AE%E6%A0%87%E6%B5%8F%E8%A7%88%E5%99%A8
*
*/
const url = "http://localhost:10000"
// 基础路径,发布前修改这里,当前配置打包出来的资源都是相对路径
let path = "jvs-teamwork-ui" // fixme 请修改为自己的前端项目名称
module.exports = {
runtimeCompiler: true,
//项目路径地址
publicPath: "/",
// publicPath: process.env.NODE_ENV !== 'development' ? '/' : ('/' +path),
//静态资源文件地址
assetsDir: path + '/static',
//静太资源文件
indexPath: path + '/index.html',
//打包文件路径
outputDir: 'docker/dist',
lintOnSave: true,
productionSourceMap: false,
chainWebpack: config => {
// 忽略的打包文件
config.externals({
'axios': 'axios'
})
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
entry
.add('classlist-polyfill')
.end()
},
// 配置转发代理
devServer: {
port: 8082,
proxy: {
'/mgr': {
target: url,
ws: true,
pathRewrite: {
'^/mgr': '/mgr'
}
},
'/auth': {
target: url,
ws: true,
pathRewrite: {
'^/auth': '/auth'
}
},
'/api': {
target: url,
ws: true,
pathRewrite: {
'^/api': '/api'
}
},
"^/agreement": {
target: url,
ws: true,
pathRewrite: {
"^/agreement": "/agreement"
}
},
}
},
css: {
loaderOptions: {
// 给 sass-loader 传递选项
sass: {
// @/ 是 src/ 的别名
// 注意:在 sass-loader v8 中,这个选项名是 "prependData" v8以下使用 additionalData
prependData: `@import "~@/styles/themes/index.scss"`
},
// 默认情况下 `sass` 选项会同时对 `sass` 和 `scss` 语法同时生效
// 因为 `scss` 语法在内部也是由 sass-loader 处理的
// 但是在配置 `prependData` 选项的时候
// `scss` 语法会要求语句结尾必须有分号,`sass` 则要求必须没有分号
// 在这种情况下,我们可以使用 `scss` 选项,对 `scss` 语法进行单独配置
scss: {
prependData: `@import "~@/styles/themes/index.scss";`
},
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。