Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-view
Project
Project
Details
Activity
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
station
amos-station-module-view
Commits
cb5dd00d
Commit
cb5dd00d
authored
Jun 09, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加打包说明
parent
e44bc9c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
readme.md
readme.md
+37
-0
No files found.
readme.md
View file @
cb5dd00d
# 说明
## 换流站3d前端打包说明
1.
复制amos-station-module-view的mods文件夹到mos-iot-graphmod根目录
2.
使用 amos-iot-graphmod 打包, 运行打包命令
```
bash
npm run build-mod
```
3.
打包完成后,复制根目录下lib文件到使用系统
4.
修改使用系统的webpack.config文件
```
bash
`
defaultConfig.plugins.push
(
new HtmlInlineCodePlugin
([
{
inject:
'body'
, begin:
true
, tag:
'script'
, attr:
{
src:
'/extra/convertor3d/graphmod.js'
}
}
,
{
inject:
'body'
, begin:
false
, tag:
'script'
, attr:
{
src:
'/extra/convertor3d/worker.69f3bd5bcb7ff720afa4.js'
}
}
])
)
;
`
```
5.
修改文件graphmod 将 webpack_require__.p修改为第3步放置的路径
```
bash
`
// __webpack_public_path__
__webpack_require__.p
=
""
;
`
```
## 注意 src路径为第3步放置的路径 文件名字要与打包后的文件名字一致
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