Skip to content
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

Include external resources when exporting ZIP #4843

Conversation

pablopunk
Copy link
Contributor

@pablopunk pablopunk commented Sep 4, 2020

What kind of change does this PR introduce?

Closes #2268
Closes #4048

What is the current behavior?

External resources are not included inside public/index.html when you export the project as a ZIP file, so users have to manually fix that issue after exporting.

What is the new behavior?

External resources are included inside <head> tag.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. Create a project and add 1 or 2 external resources. Example: https://codesandbox.io/s/reverent-cookies-kdldf
  2. Export the project as a ZIP file and run it.
  3. External resources are now there so the project works as it did on codesandbox.

Checklist

  • Documentation N/A
  • Testing
  • Ready to be merged
  • Added myself to contributors table

@SaraVieira
Copy link
Contributor

Thank you so much for this! Will review tomorrow :)

@lbogdan lbogdan temporarily deployed to pr4843 September 4, 2020 22:04 Inactive
@lbogdan
Copy link
Contributor

lbogdan commented Sep 4, 2020

Build for latest commit 0fc7739 is at https://pr4843.build.csb.dev/s/new.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 4, 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 0fc7739:

Sandbox Source
Notifications Test Configuration
dawn-smoke-wj2oq PR

@lbogdan lbogdan temporarily deployed to pr4843 September 4, 2020 22:35 Inactive
@SaraVieira
Copy link
Contributor

Closes #2268
closes #4048

@SaraVieira
Copy link
Contributor

This looks really good, that is the only comment I have :D

@pablopunk
Copy link
Contributor Author

Obrigado @SaraVieira :)

Copy link
Contributor

@SaraVieira SaraVieira left a comment

Choose a reason for hiding this comment

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

Looks great!

@SaraVieira SaraVieira merged commit 76bae8f into codesandbox:master Sep 5, 2020
@SaraVieira
Copy link
Contributor

Again, thank you so much!

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.

Deploys break Google Fonts Add things from "External Resources" to code
3 participants