From c10036be81152a70b989fc45bbd329ad5f5251e5 Mon Sep 17 00:00:00 2001 From: msojocs Date: Tue, 10 May 2022 17:12:06 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20readme=20=E7=AE=80?= =?UTF-8?q?=E8=A6=81=E6=A6=82=E8=BF=B0=E9=A1=B9=E7=9B=AE=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dceb788..3bfed44 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ -# 微信小程序编译器 +# 微信小程序编译器 Linux 版本 +# 说明 +本项目在官方 Linux 简版的基础上,实现了适用于 Linux 的懒加载版本。 + +# 实现思路 + +## 实现语言 + +由于项目中用到了 `NodeJS` ,所以为了避免多余的环境依赖,使用 `NodeJS` 实现。 + +## 实现方案 + +经过查找,官方有开放出一个 npm 包 [miniprogram-compiler](https://www.npmjs.com/package/miniprogram-compiler); + +此 npm 包中包含了 Linux 的原生实现,但没有懒加载功能; + +懒加载实现是对比 windows 版本 与 Linux 简版 的生成代码,找出其中的规律; + +按照规律,将 Linux 版本代码修改为符合 windows 版本结构的代码。 \ No newline at end of file