-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/4.x cli vite #243
Feat/4.x cli vite #243
Conversation
### h5.legacy | ||
|
||
:::info | ||
Taro v3.7.0 开始支持。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
版本不对吧
@@ -83,21 +83,35 @@ zip 包解压出单文件夹,文件夹内包含若干模板。 | |||
|
|||
很多情况下需要为模板加入一些逻辑,从而根据不同的环境生成不同的模板内容。 | |||
|
|||
开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler 与 basePageFiles 字段的对象: | |||
开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler 、 basePageFiles 于 compiler 字段的对象: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
错别字
docs/template.md
Outdated
@@ -83,21 +83,35 @@ zip 包解压出单文件夹,文件夹内包含若干模板。 | |||
|
|||
很多情况下需要为模板加入一些逻辑,从而根据不同的环境生成不同的模板内容。 | |||
|
|||
开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler 与 basePageFiles 字段的对象: | |||
开发者可以在模板根目录加入 **template_creator.js** 文件,文件对外 exports 包含 handler 、 basePageFiles 于 compiler 字段的对象: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
错别字 于
@@ -106,12 +120,13 @@ const basePageFiles = ['/src/pages/index/index.jsx', '/src/pages/index/index.css | |||
module.exports = { | |||
handler, | |||
basePageFiles, | |||
compiler: ['webpack5', 'webpack4', 'vite'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该首字母大写
No description provided.