代码拉取完成,页面将自动刷新
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 => {}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。