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
4dd749ce
Commit
4dd749ce
authored
Jan 12, 2023
by
Step_by_step
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text:格式调整
parent
555b4ba9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
README.md
README.md
+4
-1
No files found.
README.md
View file @
4dd749ce
...
@@ -64,11 +64,14 @@ npm run preview 本地预览打包完的文件
...
@@ -64,11 +64,14 @@ npm run preview 本地预览打包完的文件
### 打包流程
### 打包流程
1.
到 package.json 执行相应模块的打包命令, 打包模块在 dist
1.
到 package.json 执行相应模块的打包命令, 打包模块在 dist
2.
由于 vite 使用 ESM,故作一下修改
2.
由于 vite 使用 ESM,故作以下修改
-
去除带有 type="module" 的行 (3行)
-
去除带有 type="module" 的行 (3行)
-
去除关键字 nomodule 、crossorigin
-
去除关键字 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内容去除)
-
将
`<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
3.
模块包打包成 zip
4.
[
海马汇地址
](
http://handapptest.komatsu-fl.com.cn/submenu/banner
)
admin/Admin@123!
4.
[
海马汇地址
](
http://handapptest.komatsu-fl.com.cn/submenu/banner
)
admin/Admin@123!
-
这上方网址下搜索功能 "子应用管理",找到对应的模块,新建版本,提交 zip包 ,点击确认退出
-
这上方网址下搜索功能 "子应用管理",找到对应的模块,新建版本,提交 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