Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
komatsu-lease-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
komatsu
komatsu-lease-app
Commits
555b4ba9
Commit
555b4ba9
authored
Jan 12, 2023
by
Step_by_step
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text: readme 下添加打包流程
parent
b071a009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
README.md
README.md
+17
-0
No files found.
README.md
View file @
555b4ba9
...
...
@@ -58,3 +58,20 @@ npm run preview 本地预览打包完的文件
问题: 支付,ios证书等,代码版权
---
### 打包流程
1.
到 package.json 执行相应模块的打包命令, 打包模块在 dist
2.
由于 vite 使用 ESM,故作一下修改
-
去除带有 type="module" 的行 (3行)
-
去除关键字 nomodule 、crossorigin
-
将
`<script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy.147c7483.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>`
改为
`<script id="vite-legacy-entry" src="./assets/index-legacy.147c7483.js"></script>`
(去除关键字,data-src 改为 src,script内容去除)
3.
模块包打包成 zip
4.
[
海马汇地址
](
http://handapptest.komatsu-fl.com.cn/submenu/banner
)
admin/Admin@123!
-
这上方网址下搜索功能 "子应用管理",找到对应的模块,新建版本,提交 zip包 ,点击确认退出
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment