|
@@ -1,8 +1,10 @@
|
|
|
-import { defineConfig, loadEnv } from 'vite'
|
|
|
|
|
|
|
+import {defineConfig, loadEnv} from 'vite'
|
|
|
import path from 'path'
|
|
import path from 'path'
|
|
|
import createVitePlugins from './vite/plugins'
|
|
import createVitePlugins from './vite/plugins'
|
|
|
|
|
|
|
|
-const baseUrl = 'http://192.168.110.235:8080' // 后端接口
|
|
|
|
|
|
|
+// const baseUrl = 'http://192.168.110.235:8040' // 后端接口
|
|
|
|
|
+const baseUrl = 'http://localhost:8040' // 后端接口
|
|
|
|
|
+// const baseUrl = 'http://47.107.107.47:8040' // 后端接口
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig(({ mode, command }) => {
|
|
export default defineConfig(({ mode, command }) => {
|
|
@@ -20,7 +22,8 @@ export default defineConfig(({ mode, command }) => {
|
|
|
// 设置路径
|
|
// 设置路径
|
|
|
'~': path.resolve(__dirname, './'),
|
|
'~': path.resolve(__dirname, './'),
|
|
|
// 设置别名
|
|
// 设置别名
|
|
|
- '@': path.resolve(__dirname, './src')
|
|
|
|
|
|
|
+ '@': path.resolve(__dirname, './src'),
|
|
|
|
|
+ 'quill-image-resize-module': 'quill-image-resize-module/dist/quill-image-resize-module.esm.js'
|
|
|
},
|
|
},
|
|
|
// https://cn.vitejs.dev/config/#resolve-extensions
|
|
// https://cn.vitejs.dev/config/#resolve-extensions
|
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
@@ -42,7 +45,7 @@ export default defineConfig(({ mode, command }) => {
|
|
|
},
|
|
},
|
|
|
// vite 相关配置
|
|
// vite 相关配置
|
|
|
server: {
|
|
server: {
|
|
|
- port: 80,
|
|
|
|
|
|
|
+ port: 81,
|
|
|
host: true,
|
|
host: true,
|
|
|
open: true,
|
|
open: true,
|
|
|
proxy: {
|
|
proxy: {
|