Skip to content

Exclude assets/cdn from stencil bundle#240

Merged
mcampa merged 1 commit into
bigcommerce:masterfrom
dstaley:master
Nov 1, 2016
Merged

Exclude assets/cdn from stencil bundle#240
mcampa merged 1 commit into
bigcommerce:masterfrom
dstaley:master

Conversation

@dstaley

@dstaley dstaley commented Sep 12, 2016

Copy link
Copy Markdown
Contributor

This PR excludes the folder assets/cdn from the zip file created by running stencil bundle.

As a theme developer, I might want to include large assets that push the size of my theme's bundle past the 50MB mark. If I want to exclude my assets from the bundle, they'd need to be outside the assets directory. This results in the inability to use the stencil server to serve those assets. This change enables the theme developer to use a special folder, named cdn within their assets folder which is then excluded from the bundle.

This PR can stand on its own, but I think it makes a lot more sense in the context of my other PR (bigcommerce/paper#97), which enables theme developers to conditionally serve assets from the CDN folder when in a local environment, and from a third-party CDN when in production.

@lord2800

Copy link
Copy Markdown
Contributor

Makes sense to me. @mcampa, can you think of any reason this shouldn't be merged?

@mcampa

mcampa commented Nov 1, 2016

Copy link
Copy Markdown
Contributor

👍

@mcampa
mcampa merged commit 7c754ea into bigcommerce:master Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants