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

build-storybook chunk hash assets #372

Closed
stipsan opened this issue Aug 11, 2016 · 3 comments
Closed

build-storybook chunk hash assets #372

stipsan opened this issue Aug 11, 2016 · 3 comments

Comments

@stipsan
Copy link

stipsan commented Aug 11, 2016

Hey guys,

If you look at the source of uikit-react.io (built using standard storybook-to-ghpages) this is how the script is loaded:

<script src="static/manager.bundle.js"></script>

Is it possible to configure it to use the chunkhash feature of webpack?
To generate something like this:

<script src="static/manager.bundle.14hhgd29if.js"></script>

That way the long term caching setup on the domain (using Cloudflare CDN) is automatically busted when we deploy. Otherwise we have to turn off caching all together or people won't see stories we add as we publish new versions of uikit-react.

Thank you for any help :)

@arunoda
Copy link
Member

arunoda commented Aug 11, 2016

Yep. This is good feature we need to work on.

@arunoda
Copy link
Member

arunoda commented Nov 2, 2016

Now we've this feature.
We are not using webpack's feature. But it does the work done.
See: #578

@stipsan
Copy link
Author

stipsan commented Nov 2, 2016

that's awesome, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants