Open tranvansang opened 1 year ago
The same problem on v8.3.3
"@storybook/addon-interactions": "^8.3.3",
"@storybook/addon-links": "^8.3.3",
"@storybook/addon-onboarding": "^8.3.3",
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
"@storybook/blocks": "^8.3.3",
"@storybook/react": "^8.3.3",
"@storybook/react-webpack5": "^8.3.3",
"@storybook/test": "^8.3.3",```
Describe the bug
Background: I am a library author, not an enduser.
I want the static assets in the format of
/assets/abc.png
. By default, it isassets/abc.png
.To achieve this, I set
config.output.publicPath = '/'
inwebpackFinal()
.But this incurs another issue that the manager bundle has double slashes. I believe it is a bug in the manager build (with
esbuild
config).Probably related link: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#no-more-configuration-for-manager
Expected behavior: the manager build should correctly handle slash in the publicPath configuration from webpackFinal's output. Or. Allow manually configure the publicPath.
To Reproduce
No response
System