Storybook: Add support for publicPath.

Created on 1 Aug 2016  ·  3Comments  ·  Source: storybookjs/storybook

When deploying to production sites, it's better to provide a public URL. We can use webpack's publicPath field for that.

We can provide a cli argument for this. React Create App looks for the homepage field of the package.json for this.

feature request

All 3 comments

We don't use this and we don't need this.
You can deploy to any domain without any issues.

But for images, you need to do something. Check this: https://storybook.js.org/configurations/serving-static-files#absolute-versus-relative-paths

Link is broken

@ccutch thanks, updated that

Was this page helpful?
0 / 5 - 0 ratings