1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- const url = 'https://ht.test.prpiano.com'
- const path = require('path')
- module.exports = {
-
- //打包配置,解决页面空白的配置方案。
- publicPath: './', //输出的根路径 默认是/ 如果你的网站是app.com/vue 这更改此配置项
- lintOnSave: true,
- runtimeCompiler: true,
- //webpack配置
- configureWebpack: {
- //关闭 webpack 的性能提示
- performance: {
- hints: false
- }
- },
- pages: {
- index: {
- // 入口文件
- entry: 'src/main.js' /*这个是根入口文件*/ ,
- // 模板文件
- template: 'public/index.html',
- // 输出文件
- filename: 'index.html',
- // 页面title
- title: '数字云帆',
- assetsPublicPath: './'
- }
- },
- devServer: {
- port: "8081", //代理端口
- open: false, //项目启动时是否自动打开浏览器,我这里设置为false,不打开,true表示打开
- proxy: {
- '/agroa': { //代理api
- target: url, // 代理接口
- changeOrigin: true, //是否跨域
- ws: true, // proxy websockets
- },
- '/classlive': { //代理api
- target: url, // 代理接口
- changeOrigin: true, //是否跨域
- ws: true, // proxy websockets
- },
- '/api': { //代理api
- target: url, // 代理接口
- changeOrigin: true, //是否跨域
- ws: true, // proxy websockets
- },
- '/liveController': { //代理api
- target: url, // 代理接口
- changeOrigin: true, //是否跨域
- ws: true, // proxy websockets
- },
- }
- }
- }
|