Skip to content

Make bundle location relative to webpack publicPath#226

Merged
thani-sh merged 1 commit intostorybookjs:masterfrom
bmagnus-tw:public-path-pr
Jun 6, 2016
Merged

Make bundle location relative to webpack publicPath#226
thani-sh merged 1 commit intostorybookjs:masterfrom
bmagnus-tw:public-path-pr

Conversation

@bmagnus-tw
Copy link
Copy Markdown

The paths for manager.bundle.js and preview.bundle.js are currently hard-coded to match the webpack publicPath that is set in this project (/static/). If I override the publicPath in a custom webpack config, Storybook will not find the bundles because it will still look for /static/{bundle}.

This pull request makes the bundle paths (in the html produced by index.html.js and iframe.html.js) relative to the publicPath variable.

@thani-sh thani-sh merged commit 82de92b into storybookjs:master Jun 6, 2016
thani-sh added a commit that referenced this pull request Jun 6, 2016
@thani-sh
Copy link
Copy Markdown
Contributor

thani-sh commented Jun 6, 2016

Thank you @bmagnus
I have reverted the changes temporarily to fix some issues. I'll push a release as soon as they are done.

edit:
It didn't work well with static build

@thani-sh
Copy link
Copy Markdown
Contributor

thani-sh commented Jun 6, 2016

Released v1.28.4

@shilman shilman added the misc label May 27, 2017
@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Dec 2, 2024

View your CI Pipeline Execution ↗ for commit 84e3e23.

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 38s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-25 21:34:48 UTC

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.

4 participants