| | |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | */ |
| | | |
| | | const path = require("path"); |
| | | const CopywebpackPlugin = require("copy-webpack-plugin"); |
| | | const dvgisDist = "./node_modules/@dvgis"; |
| | | const webpack = require("webpack"); |
| | | const path = require("path") |
| | | const CopywebpackPlugin = require("copy-webpack-plugin") |
| | | const dvgisDist = "./node_modules/@dvgis" |
| | | const webpack = require("webpack") |
| | | |
| | | const CompressionPlugin = require("compression-webpack-plugin"); |
| | | const pxtovw = require("postcss-px-to-viewport"); |
| | | const CompressionPlugin = require("compression-webpack-plugin") |
| | | const pxtovw = require("postcss-px-to-viewport") |
| | | |
| | | const productionGzipExtensions = ["js", "css"]; |
| | | const productionGzipExtensions = ["js", "css"] |
| | | |
| | | module.exports = { |
| | | css: { |
| | |
| | | to: "warnings", |
| | | }, |
| | | ], |
| | | ]); |
| | | ]) |
| | | |
| | | // config.plugin("define").tap((args) => { |
| | | // args[0]["process"] = { ...args[0]["process.env"] } |
| | |
| | | proxy: { |
| | | "/api": { |
| | | // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址 |
| | | // target: "http://localhost:82", |
| | | target: "http://192.168.1.177:82", |
| | | target: "http://localhost:82", |
| | | // target: "http://192.168.1.177:82", |
| | | // target: "http://106.225.193.35:82", |
| | | // target: "http://192.168.1.170:82", |
| | | // target: "http://192.168.0.100:82", |
| | |
| | | }, |
| | | }, |
| | | }, |
| | | }; |
| | | } |