1 Star 0 Fork 0

俞俊武 / com.juncaisoft.jsfunds

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
fishandnalar@qq.com 提交于 2021-03-26 16:38 . Create
module.exports = {
// 基本路径
publicPath: "/",
// 构建输出目录
outputDir: "dist",
// 放置静态资源
assetsDir: "assets",
// html的输出路径
indexPath: "index.html",
// 文件哈希
filenameHashing: true,
//用于多页配置
/* pages: {
index: {
// page 的入口文件
entry: 'src/index/main.js',
// 模板文件
template: 'public/index.html',
// 在 dist/index.html 的输出文件
filename: 'index.html',
// 当使用title选项时,
// template 中的 title 标签需要是<title><% htmlwebpackPlugin.options.title %></title>
title: '浙江祥生建设工程有限公司————财务资金中心',
// 在这个页面包含的块,默认情况下会包含
// 提取出来的通用 chunk 和 vendor chunk。
chunks: ['index']
},
// 当使用只有入口的字符串时,
// 模板文件默认是 'public/index.html'
// 如果不存在,就退回到 'public/index.html'
//subpage: 'src/subpage/main.js'
}, */
//配置 webpack-dev-server 行为
devServer: {
open: process.platform === 'firefox',
host: '0.0.0.0',
public: process.env.VUE_APP_BASE_APP,
//port: '8080',
https: false,
hotOnly: false,
proxy: {
'/api': {
target: process.env.VUE_APP_BASE_API,
//允许跨域
changeOrigin: true,
ws: true,
//secure: false,
/* pathRewrite: {
"^/api": ""
} */
}
},
before: app => {}
}
}
JavaScript
1
https://gitee.com/yujw/com.juncaisoft.jsfunds.git
git@gitee.com:yujw/com.juncaisoft.jsfunds.git
yujw
com.juncaisoft.jsfunds
com.juncaisoft.jsfunds
master

搜索帮助