alibaba / alibaba/lowcode-engine

物料文件过大

Open
#2,965 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**
大佬好,我发现自己开发物料的时候,执行npm run lowcode:build命令生成的view.js文件太大了,通常是2M左右,导致预览页加载很慢,但是我看官网的demo中的物料文件很小,请问生成物料文件的时候有压缩方式吗
官方antd物料:
![image](https://github.com/alibaba/lowcode-engine/assets/75791730/83dcb3d3-8387-45e1-81b1-8cb5c8dc8d28)

二次开发之后的antd物料:
![image](https://github.com/alibaba/lowcode-engine/assets/75791730/66e66932-7131-47ab-b891-3017266d9c5f)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the mentioned `npm run lowcode:build` command and inspect the generated `view.js` size. Compare the generated material file with the smaller official Ant Design material shown in the report. Done means establishing whether the build output can be compressed and reducing its preview-page loading cost.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.