-
Notifications
You must be signed in to change notification settings - Fork 92
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
Unable to add public path the final build #208
Comments
Hi @msrshahrukh100, I'm not familiar with this specific feature of webpack, but maybe I could help differently: if you need just to load snippets from a remote URL, we could expose a setting for you in design.config.json. Would that work? |
Yes absolutely, it's exactly what I am looking for. I just need to fetch my js files from a remote URL so I need all the URLs in the final build to contain an S3 URL and not a relative URL. |
It's public holidays here in US, we can add this setting some time next week. I'll update this thread once it's merged. |
Hi @azaslonov please let me know if there's an update on this. |
I have exposed some settings (see design.config.json) in version 0.1.534. Hope that solves your problem. Closing the issue. Please feel free to re-open should you still need assistance. |
HI, @azaslonov |
Well, with config it's a bit different story. The config.json you're referring to is just a default implementation of ISettingsProvider interface. Therefore, if you'd like to customize that, you can create your own implementation and register it like: |
ok alright, got it, thanks! |
The index.html file of the designer is not really inside packages, it is in top level project (like paperbits-demo or your own app): https://github.com/paperbits/paperbits-demo/blob/master/src/themes/designer/assets/index.html So, you can change it right there. Does this solve it? |
yes it does, thanks a lot! |
Describe the bug
I am trying to add a publicPath to the webpack config file but the URL is not included in the final build. I want to store my build on S3 and then fetch it on my website. Pardon me if I am making a mistake here. I wanted the final build to include the URLs of my S3 bucket.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The public path URL is included in the final build. For eg. in the output file paperbits.js the file URL for grid-snippets.json is
/data/grid-snippets.json
but I wanted it to behttps://test.s3.ap-south-1.amazonaws.com/data/grid-snippets.json
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: