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

How can I change the base patch of the production build JS file? #1118

Closed
gazpachu opened this issue Aug 31, 2018 · 3 comments
Closed

How can I change the base patch of the production build JS file? #1118

gazpachu opened this issue Aug 31, 2018 · 3 comments

Comments

@gazpachu
Copy link
Contributor

gazpachu commented Aug 31, 2018

My styleguide in production sits inside a subfolder within my domain name, i.e. http://domain.tld/folder. This means that the generated index.html has the incorrect path that points at the generated JS file: <script src="build/bundle.68155630.js">. I would need to add folder to the path, so that it becomes: <script src="folder/build/bundle.68155630.js">.

Thanks

@sapegin
Copy link
Member

sapegin commented Aug 31, 2018

The path is relative to the HTML file. What exactly is the issue here?

Styleguidist works fine in a subfolder: https://react-styleguidist.js.org/examples/basic/

@gazpachu
Copy link
Contributor Author

gazpachu commented Aug 31, 2018

<script src="build/bundle.30b8c140.js"></script>

this serves from the root of my domain, so I need to prepend styleguide to that.

I've read in #874, that this could be achieved with https://react-styleguidist.js.org/docs/configuration#dangerouslyupdatewebpackconfig but I don't know how to do it

@sapegin
Copy link
Member

sapegin commented Aug 31, 2018

You need to fix your server setup, and this is not the best place for such questions.

@sapegin sapegin closed this as completed Aug 31, 2018
@styleguidist styleguidist locked as off-topic and limited conversation to collaborators Aug 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants