1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * @Description: 跨域
- * @Author: gaomingxin
- * @Date: 2023-05-27 21:37:29
- * @LastEditors: gaomingxin
- * @LastEditTime: 2023-06-15 16:50:35
- */
- module.exports = {
- devServer: {
- port: 8080, // 前端端口号
- open: true,
- // host:'localhost',
- proxy: {
- "/api": {
- // target: "http://192.168.1.107:8089/api",
- target: "http://192.168.80.58:11178/api",
- changeOrigin: true,
- pathRewrite: {
- "^/api": "",
- },
- },
- },
- },
- css: {
- loaderOptions: {
- sass: {
- // 全局sass变量
- //sass-loader 新版本
- additionalData: `@import "~@/assets/sass/index.scss";`,
- },
- },
- },
- // // ES6兼容配置:在exports中添加,这里很关键,不配置不行
- // transpileDependencies : [/node_modules\\d3\S*\\/,'delaunator'],
- };
|