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

manager-head.html not updating #14413

Closed
Jordan-Eckowitz opened this issue Mar 31, 2021 · 2 comments
Closed

manager-head.html not updating #14413

Jordan-Eckowitz opened this issue Mar 31, 2021 · 2 comments

Comments

@Jordan-Eckowitz
Copy link

Describe the bug
When I update the <link> elements in manager-head.html the changes are not working - it keeps using my old values. It works fine when I build, only have the issue when running locally.

<!-- manager-head.html -->
<link rel="shortcut icon" href="/logo.ico" />
<link rel="icon" type="image/png" href="/logo192.png" sizes="192x192" />

Expected behavior
The <head> attributes should update

@alexjamesmacpherson
Copy link

I've seen similar with changes to theme.js (imported into manager.js) not updating. It happens because the manager files are cached for quicker start-up.

You can delete files from node_modules/.cache/storybook to clear the local cache, then boot storybook back up and your changes should be visible.

Failing that, you can add the --no-manager-cache flag to your start storybook command, as below. This is good if you're actively working on the manager files, but can severely impact boot times, so not recommended for general use.

{
  "scripts":{
    "storybook": "start-storybook -p 6006 --no-manager-cache",
  },
}

See the below for more info:

@Jordan-Eckowitz
Copy link
Author

Thanks! I assumed it was a caching issue but didn't know where it was saved - good to know. Much appreciated.

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

3 participants