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

feat: 支持 public 目录 #1016

Merged
merged 13 commits into from
Jun 3, 2020
Merged

feat: 支持 public 目录 #1016

merged 13 commits into from
Jun 3, 2020

Conversation

Darmody
Copy link
Contributor

@Darmody Darmody commented Jun 1, 2020

No description provided.

@vercel
Copy link

vercel bot commented Jun 1, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/remaxjs/remax/7dkt2b3wc
✅ Preview: https://remax-git-public.remaxjs.now.sh

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 1, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 614f159:

Sandbox Source
charming-mestorf-6b938 Configuration

@Darmody Darmody marked this pull request as ready for review June 1, 2020 11:10
@Darmody Darmody requested a review from yesmeck June 1, 2020 11:10
@codecov
Copy link

codecov bot commented Jun 1, 2020

Codecov Report

Merging #1016 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1016      +/-   ##
==========================================
+ Coverage   95.68%   95.74%   +0.06%     
==========================================
  Files         330      331       +1     
  Lines        3542     3598      +56     
  Branches      516      524       +8     
==========================================
+ Hits         3389     3445      +56     
  Misses        153      153              
Impacted Files Coverage Δ
...ackages/remax-cli/src/build/webpack/config.mini.ts 100.00% <100.00%> (ø)
packages/remax-cli/src/build/webpack/config.web.ts 96.42% <100.00%> (+0.27%) ⬆️
packages/remax-cli/src/API.ts 100.00% <0.00%> (ø)
packages/remax-cli/src/build/babel/app.ts 100.00% <0.00%> (ø)
packages/remax-runtime/src/createAppConfig.ts 100.00% <0.00%> (ø)
packages/remax-runtime/src/lifecycle/index.ts 100.00% <0.00%> (ø)
packages/remax-runtime/src/createPageConfig.ts 100.00% <0.00%> (ø)
packages/remax-cli/src/build/babel/pageEvent.ts 100.00% <0.00%> (ø)
...ack/plugins/NativeFiles/createTurboPageTemplate.ts 100.00% <0.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4bfc325...614f159. Read the comment docs.


在项目根目录下创建 public 目录,public 目录下的所有文件会被自动复制到 dist 目录下。

你可以将 `原生页面`, `tabbar 中配置的图片` 等等全局资源放在这个目录下。
Copy link
Member

Choose a reason for hiding this comment

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

@yesmeck
Copy link
Member

yesmeck commented Jun 1, 2020

web 端这个目录会怎么处理?

@yesmeck
Copy link
Member

yesmeck commented Jun 1, 2020

docs/guide/v2-migration.md Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview June 2, 2020 12:20 Inactive
@yesmeck
Copy link
Member

yesmeck commented Jun 2, 2020

考虑下 watch 的情况

@vercel vercel bot temporarily deployed to Preview June 2, 2020 12:21 Inactive
@vercel vercel bot temporarily deployed to Preview June 2, 2020 12:23 Inactive
@@ -42,6 +42,7 @@
"babel-preset-remax": "2.2.0",
"chokidar": "^3.4.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.1.1",
Copy link
Member

Choose a reason for hiding this comment

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

怎么不用 6

Copy link
Contributor Author

Choose a reason for hiding this comment

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

6有问题

docs/guide/config/public.md Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants