Lab Activity: Bundling a Customized Theme
Lab Activity: Bundling a Customized Theme
Lab Activity: Bundling a Customized Theme
Objectives
Prerequisites
You have verified all requirements have been met. Stencil CLI provides two options for creating a .zip file that contains all your theme’s essentials while excluding redundant components.
Note:
Writable Permissions Are Required
Without these permissions, bundling your theme will fail, blocking its upload to BigCommerce.
No Automatic Check for Dependencies
The stencil bundle and stencil push commands do not check for the dependencies that these build systems install. So if those dependencies are missing, these commands will not immediately report errors. However, your resulting .zip file will not properly upload to BigCommerce, and will not run properly on a storefront.
Verify Directory and File Permissions
If you have added any new subdirectories or files to your base theme, verify that you have:
Set newly added directories to permission 755 (drwxr-xr-x). Set newly added files to permission 644 (rw-r—r—).
Troubleshooting theme uploads.
Bundle Only
Check the resulting .zip file’s size. (It cannot exceed 50 MB). If your .zip file meets this requirement you are now ready to upload your theme.
If your .zip file exceeds 50 MB, you will need to use one of the following procedures to restructure your theme to a size that is manageable for upload to BigCommerce:

Stencil CLI will display:
Note
If bundling your theme triggers multiple lint errors related to the bundle.js file, then your theme is missing the .eslintignore file. Please retrieve this file from the Stencil Cornerstone repo, then re-run stencil bundle or stencil push.