Newer
Older
testLinkTool / vue.config.js
const { defineConfig } = require('@vue/cli-service')
const path = require("path")
const webpack = require("webpack")
module.exports = defineConfig({
  publicPath: './', // 打包路径,使用相对路径生成的dist文件夹下的index可以打开
  outputDir: 'dist', // 输出文件目录
  productionSourceMap: false, // 取消生成map文件
  lintOnSave: false, // 配置关闭eslint  (代码会有红色热浪提示错 但不影响代码运行)
  // devServer: {
  //   port: 9999,
  //   proxy: {
  //     '/api': {
  //       target: 'http://192.168.8.111:8083',
  //       ws: true,
  //       changeOrigin: true,  //表示是否改变原域名
  //       secure: false, // 如果是https接口,需要配置这个参数为true`
  //       pathRewrite: {
  //         '^/api': '',
  //       }
  //     }
  //   }
  // },
})