Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wms-app
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
wms-app
Commits
ff1b294a
提交
ff1b294a
authored
11月 14, 2024
作者:
Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
8bf351b9
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
49 行增加
和
49 行删除
+49
-49
vite.config.ts
vite.config.ts
+49
-49
没有找到文件。
vite.config.ts
浏览文件 @
ff1b294a
import
{
defineConfig
}
from
'vite'
;
import
{
defineConfig
}
from
"vite"
;
// import pxtovw from 'postcss-px-to-viewport'
import
{
resolve
}
from
'path'
;
import
{
createSvgIconsPlugin
}
from
'vite-plugin-svg-icons'
;
import
uni
from
'@dcloudio/vite-plugin-uni'
;
import
{
resolve
}
from
"path"
;
import
{
createSvgIconsPlugin
}
from
"vite-plugin-svg-icons"
;
import
uni
from
"@dcloudio/vite-plugin-uni"
;
export
default
defineConfig
({
plugins
:
[
uni
(),
createSvgIconsPlugin
({
iconDirs
:
[
resolve
(
process
.
cwd
(),
'src/static/svg'
)],
symbolId
:
'icon-[dir]-[name]'
,
}),
],
resolve
:
{
alias
:
{
'@'
:
resolve
(
__dirname
,
'./src'
),
},
plugins
:
[
uni
(),
createSvgIconsPlugin
({
iconDirs
:
[
resolve
(
process
.
cwd
(),
"src/static/svg"
)],
symbolId
:
"icon-[dir]-[name]"
,
}),
],
resolve
:
{
alias
:
{
"@"
:
resolve
(
__dirname
,
"./src"
),
},
css
:
{
preprocessorOptions
:
{
scss
:
{
additionalData
:
`@import "@/uni.scss";`
,
},
},
postcss
:
{
// plugins: [loder_pxtovw]
},
},
css
:
{
preprocessorOptions
:
{
scss
:
{
additionalData
:
`@import "@/uni.scss";`
,
},
},
assetsInclude
:
'@dcloudio/uni-ui'
,
build
:
{
minify
:
'terser'
,
terserOptions
:
{
compress
:
{
drop_console
:
true
,
// 生产环境移除console
drop_debugger
:
true
,
// 生产环境移除debugger
},
},
postcss
:
{
// plugins: [loder_pxtovw]
},
server
:
{
host
:
'0.0.0.0'
,
port
:
7878
,
open
:
true
,
strictPort
:
false
,
// 端口被占用直接退出
https
:
false
,
// 默认用http方式
proxy
:
{
'/lowcodeplatform-system'
:
{
target
:
'http://192.168.1.156'
,
// target: 'http://192.168.1.27',
},
'/wms-system'
:
{
target
:
'http://192.168.1.156'
,
// target: 'http://192.168.1.27',
},
},
},
assetsInclude
:
"@dcloudio/uni-ui"
,
build
:
{
minify
:
"terser"
,
terserOptions
:
{
compress
:
{
drop_console
:
true
,
// 生产环境移除console
drop_debugger
:
true
,
// 生产环境移除debugger
},
},
},
server
:
{
host
:
"0.0.0.0"
,
port
:
7878
,
open
:
true
,
strictPort
:
false
,
// 端口被占用直接退出
https
:
false
,
// 默认用http方式
proxy
:
{
"/lowcodeplatform-system"
:
{
target
:
"http://192.168.1.156"
,
// target: 'http://192.168.1.27',
},
"/wms-system"
:
{
target
:
"http://192.168.1.156"
,
// target: 'http://192.168.1.27',
},
},
},
});
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论