Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

feat: web端支持自定义模板 #1115

Merged
merged 6 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/guide/basic/public.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ export default () => {
return <Image src="/images/icon.png" />;
};
```

> 2.7.0 开始支持

在项目根目录下创建 `public/index.html` 文件

你可以将 web 端 `默认html模板文件` 替换成你自定义的 `html模板文件`,remax 将在 `id=remax-app` 的元素中渲染
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import runTest from './helpers/runTest';
import { Platform } from '@remax/types';

describe('build custom html template app', () => {
runTest('customHtmlTemplate', Platform.web);
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading