-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readmes for public and app/assets directories
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Use the `/app/assets` folder to store static files that **should be processed at build time**. | ||
|
||
Files in `/app/assets`: | ||
- Get uploaded to the Shopify CDN on deployment | ||
- `/app/assets/logo.png` → `cdn.shopify.com/0000/0000/0000/assets/logo.png` | ||
- Can be imported in your app files | ||
- Example: `import logo from '~/app/assets/logo.png'` | ||
- Get processed by Hydrogen's build tools | ||
- File names are likely to be hashed (`/app/assets/logo.svg` -> `/dist/assets/logo-p7f8c0gh.svg`) | ||
- SVG images may be inlined | ||
- CSS or JavaScript files may be chunked, uglified, and/or minified |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Use the `/public` folder to store static files that **shouldn't be processed at build time**. | ||
|
||
Files in `/public`: | ||
- Get uploaded to the Shopify CDN on deployment | ||
- `/public/image.png` → `cdn.shopify.com/0000/0000/0000/image.png` | ||
- Can't be imported in your app files (see `/app/assets` instead) | ||
- Aren't processed by Hydrogen's build tools |