|
@@ -1,4 +1,4 @@
|
|
|
-import { defineConfig ,loadEnv} from "vite";
|
|
|
+import { defineConfig, loadEnv } from "vite";
|
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
|
|
|
|
|
@@ -9,14 +9,14 @@ function pathResolve(dir) {
|
|
|
return resolve(process.cwd(), ".", dir);
|
|
|
}
|
|
|
|
|
|
-export default defineConfig(({command, mode})=>{
|
|
|
- const config = loadEnv(mode,'./')
|
|
|
+export default defineConfig(({ command, mode }) => {
|
|
|
+ const config = loadEnv(mode, './')
|
|
|
return {
|
|
|
resolve: {
|
|
|
alias: [{
|
|
|
find: "@",
|
|
|
replacement: pathResolve("src"),
|
|
|
- }, ],
|
|
|
+ },],
|
|
|
dedupe: ["vue"],
|
|
|
},
|
|
|
plugins: [
|
|
@@ -34,12 +34,13 @@ export default defineConfig(({command, mode})=>{
|
|
|
less: {
|
|
|
charset: false, // 解决中文乱码
|
|
|
modifyVars: {
|
|
|
- "arcoblue-6": "#d1402f",
|
|
|
+ "arcoblue-6": "#0f2d5c",
|
|
|
},
|
|
|
javascriptEnabled: true,
|
|
|
additionalData: '@import "@/assets/css/theme.less";@import "@/assets/css/global.less";',
|
|
|
},
|
|
|
},
|
|
|
+
|
|
|
},
|
|
|
build: {
|
|
|
minify: true, // 生产环境不生成sourcemap
|
|
@@ -63,7 +64,7 @@ export default defineConfig(({command, mode})=>{
|
|
|
cors: true,
|
|
|
hmr: true,
|
|
|
proxy: {
|
|
|
- "/api": {
|
|
|
+ "/api": {
|
|
|
// target:"https://sim.nanodreamtech.com",
|
|
|
// target: config.VITE_API_URL,
|
|
|
target: "https://flexi.flexistream.link",
|