Skip to content

Conversation

@ZEJIA-LIU
Copy link
Contributor

No description provided.

@ZEJIA-LIU ZEJIA-LIU requested a review from luckyadam January 29, 2024 08:38
### h5.legacy

:::info
Taro v3.7.0 开始支持。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

版本不对吧

很多情况下需要为模板加入一些逻辑,从而根据不同的环境生成不同的模板内容。

开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler basePageFiles 字段的对象:
开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler basePageFiles 于 compiler 字段的对象:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

错别字

docs/template.md Outdated
很多情况下需要为模板加入一些逻辑,从而根据不同的环境生成不同的模板内容。

开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler basePageFiles 字段的对象:
开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler basePageFiles 于 compiler 字段的对象:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

错别字 于

module.exports = {
handler,
basePageFiles,
compiler: ['webpack5', 'webpack4', 'vite']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该首字母大写

@ZEJIA-LIU ZEJIA-LIU merged commit d97782d into master Jan 29, 2024
@ZEJIA-LIU ZEJIA-LIU deleted the feat/4.x-cli-vite branch January 29, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants