Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-21 10:02:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b9af94e4eb194edc6f58f4a40bc1c1945fd1251
1b9af94e
1 parent
c5c67b67
✨ feat: 调整编译提交配置
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
.env.development
.env.production
vite.config.js
.env.development
View file @
1b9af94
...
...
@@ -15,7 +15,6 @@ VITE_PIN =
# 反向代理服务器地址
VITE_PROXY_TARGET = http://oa-dev.onwall.cn
# VITE_PROXY_TARGET = http://guanzong.onwall.cn
# PC端地址
VITE_MOBILE_URL = http://localhost:5173/
...
...
.env.production
View file @
1b9af94
# 资源公共路径
VITE_BASE = /f/
guanzong
/front/
VITE_BASE = /f/
custom_form
/front/
# 测试open-id
VITE_APP_OPENID =
...
...
vite.config.js
View file @
1b9af94
...
...
@@ -64,7 +64,7 @@ export default ({ command, mode }) => {
"common"
:
path
.
resolve
(
__dirname
,
"src/common"
),
"@api"
:
path
.
resolve
(
__dirname
,
"src/api"
),
},
// dedupe: ['
'], // 如果你在你的应用程序中有相同依赖的副本(比如 monorepos),使用这个选项来强制 Vite 总是将列出的依赖关系解析到相同的副本(从项目根目录)。
dedupe
:
[
'vue
'
],
// 如果你在你的应用程序中有相同依赖的副本(比如 monorepos),使用这个选项来强制 Vite 总是将列出的依赖关系解析到相同的副本(从项目根目录)。
// conditions: [''], // 在解析包的 情景导出 时允许的附加条件。
// mainFields: [''], // package.json 中,在解析包的入口点时尝试的字段列表。注意,这比从 exports 字段解析的情景导出优先级低:如果一个入口点从 exports 成功解析,主字段将被忽略。
extensions
:
[
'.mjs'
,
'.js'
,
'.ts'
,
'.jsx'
,
'.tsx'
,
'.json'
,
'.vue'
],
// 导入时想要省略的扩展名列表。注意,不 建议忽略自定义导入类型的扩展名(例如:.vue),因为它会干扰 IDE 和类型支持。
...
...
Please
register
or
login
to post a comment